stream: set async=sync=false only for RTCP appsink
authorPatricia Muscalu <patricia@axis.com>
Fri, 20 Oct 2017 10:21:48 +0000 (12:21 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 15 Nov 2017 15:46:00 +0000 (17:46 +0200)
Change-Id: I929a218a9adf4759f61322b6f2063aacc5595f90

https://bugzilla.gnome.org/show_bug.cgi?id=788340

gst/rtsp-server/rtsp-stream.c

index 25ff9c9..2551895 100644 (file)
@@ -2463,7 +2463,8 @@ create_sender_part (GstRTSPStream * stream, GstBin * bin, GstState state)
             &priv->mcast_udpqueue[i]);
 
       if (is_tcp) {
-        g_object_set (priv->appsink[i], "async", FALSE, "sync", FALSE, NULL);
+        if (i == 1)
+          g_object_set (priv->appsink[i], "async", FALSE, "sync", FALSE, NULL);
         plug_sink (bin, priv->tee[i], priv->appsink[i], &priv->appqueue[i]);
       }
     } else if (is_tcp) {