Skip to content

Commit 8cc0b34

Browse files
emutavchiphiln
authored andcommitted
Fix build for Realtek/Broadcom after introduction of GStreamer quirks
1 parent ff7d2cb commit 8cc0b34

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoDecoderFactory.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -70,29 +70,6 @@ class GStreamerWebRTCVideoDecoder : public webrtc::VideoDecoder {
7070
ASSERT_NOT_REACHED();
7171
}
7272

73-
#if PLATFORM(BROADCOM) || PLATFORM(REALTEK)
74-
static unsigned getGstAutoplugSelectResult(const char* nick)
75-
{
76-
static GEnumClass* enumClass = static_cast<GEnumClass*>(g_type_class_ref(g_type_from_name("GstAutoplugSelectResult")));
77-
ASSERT(enumClass);
78-
GEnumValue* ev = g_enum_get_value_by_nick(enumClass, nick);
79-
if (!ev)
80-
return 0;
81-
return ev->value;
82-
}
83-
84-
static unsigned decodebinAutoplugSelect(GstElement *, GstPad *, GstCaps *, GstElementFactory *factory, gpointer)
85-
{
86-
if (g_str_has_prefix(gst_plugin_feature_get_plugin_name(GST_PLUGIN_FEATURE_CAST(factory)), "brcm")) {
87-
return getGstAutoplugSelectResult("skip");
88-
}
89-
if (g_str_has_prefix(gst_plugin_feature_get_plugin_name(GST_PLUGIN_FEATURE_CAST(factory)), "omx")) {
90-
return getGstAutoplugSelectResult("skip");
91-
}
92-
return getGstAutoplugSelectResult("try");
93-
}
94-
#endif
95-
9673
GstElement* pipeline()
9774
{
9875
return m_pipeline.get();

0 commit comments

Comments
 (0)