rtspsrc: fix check for active streams
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 16 Nov 2012 14:18:07 +0000 (15:18 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 16 Nov 2012 14:22:46 +0000 (15:22 +0100)
A stream can be active without a srcpad yet and we want to send
events on those streams as well.

gst/rtsp/gstrtspsrc.c

index 799edfe..bb13c56 100644 (file)
@@ -3278,7 +3278,7 @@ gst_rtspsrc_stream_push_event (GstRTSPSrc * src, GstRTSPStream * stream,
   gboolean res = TRUE;
 
   /* only streams that have a connection to the outside world */
-  if (stream->srcpad == NULL)
+  if (stream->container || stream->disabled)
     goto done;
 
   if (stream->udpsrc[0]) {