Commit 1f51fd97 authored by Wim Taymans's avatar Wim Taymans

gst/rtsp/gstrtspsrc.c: Unblock pads after adding the pads to the element so...

gst/rtsp/gstrtspsrc.c: Unblock pads after adding the pads to the element so that autopluggers get a change to link so...

Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (pad_unblocked), (pad_blocked):
Unblock pads after adding the pads to the element so that autopluggers
get a change to link something. Possibly fixes #395688.
parent 3df533de
2007-01-24 Wim Taymans <wim@fluendo.com>
* gst/rtsp/gstrtspsrc.c: (pad_unblocked), (pad_blocked):
Unblock pads after adding the pads to the element so that autopluggers
get a change to link something. Possibly fixes #395688.
2007-01-24 Wim Taymans <wim@fluendo.com>
* gst/rtp/gstrtpamrdepay.c:
......
......@@ -841,6 +841,7 @@ cleanup:
static void
pad_unblocked (GstPad * pad, gboolean blocked, GstRTSPSrc * src)
{
GST_DEBUG_OBJECT (src, "pad %s:%s unblocked", GST_DEBUG_PAD_NAME (pad));
}
static void
......@@ -849,9 +850,6 @@ pad_blocked (GstPad * pad, gboolean blocked, GstRTSPSrc * src)
GST_DEBUG_OBJECT (src, "pad %s:%s blocked, activating streams",
GST_DEBUG_PAD_NAME (pad));
gst_pad_set_blocked_async (pad, FALSE, (GstPadBlockCallback) pad_unblocked,
src);
/* activate the streams */
GST_OBJECT_LOCK (src);
if (!src->need_activate)
......@@ -862,12 +860,17 @@ pad_blocked (GstPad * pad, gboolean blocked, GstRTSPSrc * src)
gst_rtspsrc_activate_streams (src);
unblock:
/* now unblock and let it stream */
gst_pad_set_blocked_async (pad, FALSE, (GstPadBlockCallback) pad_unblocked,
src);
return;
was_ok:
{
GST_OBJECT_UNLOCK (src);
return;
goto unblock;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment