gst/rtsp/gstrtspsrc.c: Activate pads before adding them to the source.
authorTim-Philipp Müller <tim@centricular.net>
Sat, 7 Oct 2006 21:15:40 +0000 (21:15 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 7 Oct 2006 21:15:40 +0000 (21:15 +0000)
Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_transport):
Activate pads before adding them to the source.

ChangeLog
gst/rtsp/gstrtspsrc.c

index 778bd6d..8a3f408 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-07  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_transport):
+         Activate pads before adding them to the source.
+
 2006-10-06  Wim Taymans  <wim@fluendo.com>
 
        * ext/dv/gstdvdemux.c: (gst_dvdemux_add_pads), (gst_dvdemux_chain):
index 70c6aa0..f67ac46 100644 (file)
@@ -851,6 +851,7 @@ gst_rtspsrc_stream_configure_transport (GstRTSPStream * stream,
       gst_pad_set_caps (stream->srcpad, stream->caps);
 
       stream->channelpad[0] = gst_object_ref (stream->srcpad);
+      gst_pad_set_active (stream->srcpad, TRUE);
       gst_element_add_pad (GST_ELEMENT_CAST (src), stream->srcpad);
     } else {
       GST_DEBUG_OBJECT (src, "using manager source pad");
@@ -952,6 +953,7 @@ gst_rtspsrc_stream_configure_transport (GstRTSPStream * stream,
     gst_object_unref (outpad);
 
     /* and add */
+    gst_pad_set_active (stream->srcpad, TRUE);
     gst_element_add_pad (GST_ELEMENT_CAST (src), stream->srcpad);
   }
   /* mark pad as ok */