diff options
author | Lutz Mueller <lutz@topfrose.de> | 2007-01-11 09:30:59 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-01-11 09:30:59 +0000 |
commit | cfed610d01fe602144fce98ad09610d19c877807 (patch) | |
tree | 6e1f69e689a8f1e53867718950b944127f2f19f3 | |
parent | 12ab127d12bf2d5f15860e736bb1792918f532ef (diff) |
gst/rtsp/gstrtspsrc.c: Check for stream pad before activating.
Original commit message from CVS:
Patch by: Lutz Mueller <lutz at topfrose dot de>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_activate_streams):
Check for stream pad before activating.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 12 |
2 files changed, 14 insertions, 5 deletions
@@ -1,3 +1,10 @@ +2007-01-11 Wim Taymans <wim@fluendo.com> + + Patch by: Lutz Mueller <lutz at topfrose dot de> + + * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_activate_streams): + Check for stream pad before activating. + 2007-01-10 Wim Taymans <wim@fluendo.com> Patch by: Peter Kjellerstedt <pkj at axis com> diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 1ec70b88..96fd79ee 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1122,11 +1122,13 @@ gst_rtspsrc_activate_streams (GstRTSPSrc * src) for (walk = src->streams; walk; walk = g_list_next (walk)) { GstRTSPStream *stream = (GstRTSPStream *) walk->data; - gst_pad_set_active (stream->srcpad, TRUE); - /* add the pad */ - if (!stream->added) { - gst_element_add_pad (GST_ELEMENT_CAST (src), stream->srcpad); - stream->added = TRUE; + if (stream->srcpad) { + gst_pad_set_active (stream->srcpad, TRUE); + /* add the pad */ + if (!stream->added) { + gst_element_add_pad (GST_ELEMENT_CAST (src), stream->srcpad); + stream->added = TRUE; + } } } |