Skip to content

Commit 04c2048

Browse files
committed
[GST]Ensure GST initialized before playing with GST Quirks
https://bugs.webkit.org/show_bug.cgi?id=303326 Reviewed by NOBODY (OOPS!). GStreamerQuirksManager verifies each quirk with isPlatformSupported() that usually relies on gst elements presense in the registry. Calling this without gst_init called fails for every gst element and rejects all quirks. The problem exists for apps that don't use any of canPlayType() or isTypeSupported() that handle gst_init internally. * Source/WebCore/platform/gstreamer/GStreamerQuirks.cpp: (WebCore::GStreamerQuirksManager::GStreamerQuirksManager): Original author: Andrzej Surdej <[email protected]> See: WebPlatformForEmbedded/WPEWebKit#1584
1 parent 57f28a7 commit 04c2048

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/WebCore/platform/gstreamer/GStreamerQuirks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ GStreamerQuirksManager::GStreamerQuirksManager(bool isForTesting, bool loadQuirk
6363
{
6464
static std::once_flag debugRegisteredFlag;
6565
std::call_once(debugRegisteredFlag, [] {
66+
ensureGStreamerInitialized();
6667
GST_DEBUG_CATEGORY_INIT(webkit_quirks_debug, "webkitquirks", 0, "WebKit Quirks");
6768
});
6869

0 commit comments

Comments
 (0)