Branch: refs/heads/webkitglib/2.50
  Home:   https://github.com/WebKit/WebKit
  Commit: c4e389b7b052998480a63ac9ba2d5ed92dc947c6
      
https://github.com/WebKit/WebKit/commit/c4e389b7b052998480a63ac9ba2d5ed92dc947c6
  Author: Vivienne Watermeier <[email protected]>
  Date:   2025-12-08 (Mon, 08 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:
  -----------
  Cherry-pick 303982@main (5034d7143b1d). 
https://bugs.webkit.org/show_bug.cgi?id=303326

    [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

Canonical link: https://commits.webkit.org/298234.313@webkitglib/2.50



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

Reply via email to