[webkit-changes] [WebKit/WebKit] 144374: [GStreamer] Runtime element checks should also loo...

Philippe Normand noreply at github.com
Fri Feb 7 00:53:49 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1443747622f26cb3e3a0f2f6024d796d12893878
      https://github.com/WebKit/WebKit/commit/1443747622f26cb3e3a0f2f6024d796d12893878
  Author: Philippe Normand <philn at igalia.com>
  Date:   2025-02-07 (Fri, 07 Feb 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/MediaPlayerPrivateGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] Runtime element checks should also look at their factory names
https://bugs.webkit.org/show_bug.cgi?id=287017

Reviewed by Xabier Rodriguez-Calvar.

Introduce a new gstElementMatchesFactoryAndHasProperty() helper that checks both the element factory
name and a given property name presence on a GstElement.

* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::configureAudioDecoderForHarnessing):
(WebCore::configureVideoDecoderForHarnessing):
(WebCore::gstElementMatchesFactoryAndHasProperty):
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::configureVideoDecoder):
(WebCore::applyAudioSinkDevice):

Canonical link: https://commits.webkit.org/289992@main



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


More information about the webkit-changes mailing list