rtsp-stream: Don't set the state of the appsrc from PLAYING to PAUSED again during...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 16 Mar 2016 21:35:09 +0000 (23:35 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Mar 2016 21:36:30 +0000 (23:36 +0200)
This would get us NO_PREROLL in the bin again and break seeking.
Thanks to Carlos Rafael Giani for helping to debug this!

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

gst/rtsp-server/rtsp-stream.c

index 9fffeec..faa76fe 100644 (file)
@@ -2533,8 +2533,6 @@ create_receiver_part (GstRTSPStream * stream, GstBin * bin, GstState state)
     if (state != GST_STATE_NULL) {
       if (priv->funnel[i] && (priv->sinkpad || i == 1))
         gst_element_set_state (priv->funnel[i], state);
-      if (priv->appsrc[i] && (priv->sinkpad || i == 1))
-        gst_element_set_state (priv->appsrc[i], state);
     }
   }
 }