Skip to content

Commit 3add687

Browse files
committed
[GStreamer][Quirks] detect brcm audio sink by testing object type name
https://bugs.webkit.org/show_bug.cgi?id=276248 Reviewed by Philippe Normand. playbin3 doesn't auto select platform audio sink, letting playsink to use autoaudiosink. The sink name created by autoaudiosink differs from one expected here, resulting in different behavior for playbin2 vs. playbin3. Patch by Eugene Mutavchi <Ievgen_Mutavchi@comcast.com>. * Source/WebCore/platform/gstreamer/GStreamerQuirkBroadcom.cpp: (WebCore::GStreamerQuirkBroadcom::configureElement): Canonical link: https://commits.webkit.org/280684@main
1 parent e15bff0 commit 3add687

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/WebCore/platform/gstreamer/GStreamerQuirkBroadcom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GStreamerQuirkBroadcom::GStreamerQuirkBroadcom()
3939

4040
void GStreamerQuirkBroadcom::configureElement(GstElement* element, const OptionSet<ElementRuntimeCharacteristics>& characteristics)
4141
{
42-
if (g_str_has_prefix(GST_ELEMENT_NAME(element), "brcmaudiosink"))
42+
if (!g_strcmp0(G_OBJECT_TYPE_NAME(element), "Gstbrcmaudiosink"))
4343
g_object_set(G_OBJECT(element), "async", TRUE, nullptr);
4444
else if (g_str_has_prefix(GST_ELEMENT_NAME(element), "brcmaudiodecoder")) {
4545
// Limit BCM audio decoder buffering to 1sec so live progressive playback can start faster.

0 commit comments

Comments
 (0)