Forráskód Böngészése

Ladybird: Create a runtime error for unknown audio codec plugins

This will allow us to bring the WebContent process into non-Qt macOS
chromes. This branch is only reached when creating an <audio> element,
so while the chrome is heavily under development, we can just avoid
these elements.
Timothy Flynn 1 éve
szülő
commit
553d35e503
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      Ladybird/WebContent/main.cpp

+ 2 - 1
Ladybird/WebContent/main.cpp

@@ -65,7 +65,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
 #elif defined(HAVE_QT)
 #elif defined(HAVE_QT)
         return Ladybird::AudioCodecPluginQt::create(move(loader));
         return Ladybird::AudioCodecPluginQt::create(move(loader));
 #else
 #else
-#    error "Don't know how to initialize audio in this configuration!"
+        (void)loader;
+        return Error::from_string_literal("Don't know how to initialize audio in this configuration!");
 #endif
 #endif
     });
     });