Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5034d7143b1dc8f47fa6808e1d46c1f976b8d306
      
https://github.com/WebKit/WebKit/commit/5034d7143b1dc8f47fa6808e1d46c1f976b8d306
  Author: Vivienne Watermeier <[email protected]>
  Date:   2025-12-05 (Fri, 05 Dec 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp
    M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h
    M Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp
    M Source/WebCore/platform/gstreamer/GStreamerQuirks.cpp

  Log Message:
  -----------
  [GStreamer] Ensure GStreamer is initialized before using the Quirks
https://bugs.webkit.org/show_bug.cgi?id=303326

Reviewed by Philippe Normand.

GStreamerQuirksManager requires GStreamer to be initialized, which
does not happen soon enough if neither canPlayType() nor isTypeSupported() has
been called before, so in those cases no quirks are applied.

However, the quirks manager may be used in other processes, e.g. NetworkProcess
when determining support for a MIME type. To avoid issues, we should
only fully init GStreamer if on the WebProcess, and otherwise go for
a minimal initialization.

* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::ensureGStreamerInitializedNonWebProcess):
Added as a counterpart to ensureGStreamerInitialized, only does minimal init.
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:
* Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::GStreamerRegistryScanner):
Use the new function to initialize gst if in the UIProcess
* Source/WebCore/platform/gstreamer/GStreamerQuirks.cpp:
(WebCore::GStreamerQuirksManager::GStreamerQuirksManager):
Init GStreamer using either of the two methods

Original author: Andrzej Surdej <[email protected]>

See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1584
Canonical link: https://commits.webkit.org/303982@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to