[WPE][GTK] Bump minimum versions of GLib, GTK, libsoup, ATK, GStreamer, and Cairo
[WebKit-https.git] / Source / WebCore / platform / mediastream / gstreamer / GStreamerCapturer.cpp
index 92bfa41..617b75d 100644 (file)
@@ -29,8 +29,6 @@
 #include <mutex>
 #include <webrtc/api/mediastreaminterface.h>
 
-#if GST_CHECK_VERSION(1, 10, 0)
-
 GST_DEBUG_CATEGORY(webkit_capturer_debug);
 #define GST_CAT_DEFAULT webkit_capturer_debug
 
@@ -155,13 +153,6 @@ void GStreamerCapturer::addSink(GstElement* newSink)
         return;
     }
 
-    if (newSink == m_sink.get()) {
-        GST_INFO_OBJECT(m_pipeline.get(), "Setting queue as leaky upstream"
-            " so that the player can set the sink to PAUSED without "
-            " setting the whole capturer to PAUSED");
-        g_object_set(queue, "leaky", 2 /* upstream */, nullptr);
-    }
-
     GST_INFO_OBJECT(pipeline(), "Adding sink: %" GST_PTR_FORMAT, newSink);
 
     GUniquePtr<char> dumpName(g_strdup_printf("%s_sink_%s_added", GST_OBJECT_NAME(pipeline()), GST_OBJECT_NAME(newSink)));
@@ -193,5 +184,4 @@ void GStreamerCapturer::stop()
 
 } // namespace WebCore
 
-#endif // GST_CHECK_VERSION(1, 10, 0)
 #endif // ENABLE(VIDEO) && ENABLE(MEDIA_STREAM) && USE(LIBWEBRTC) && USE(GSTREAMER)