mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
3df533de2c
commit
1f51fd9785
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2007-01-24 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtp/gstrtpamrdepay.c:
|
* gst/rtp/gstrtpamrdepay.c:
|
||||||
|
|
|
@ -841,6 +841,7 @@ cleanup:
|
||||||
static void
|
static void
|
||||||
pad_unblocked (GstPad * pad, gboolean blocked, GstRTSPSrc * src)
|
pad_unblocked (GstPad * pad, gboolean blocked, GstRTSPSrc * src)
|
||||||
{
|
{
|
||||||
|
GST_DEBUG_OBJECT (src, "pad %s:%s unblocked", GST_DEBUG_PAD_NAME (pad));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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_OBJECT (src, "pad %s:%s blocked, activating streams",
|
||||||
GST_DEBUG_PAD_NAME (pad));
|
GST_DEBUG_PAD_NAME (pad));
|
||||||
|
|
||||||
gst_pad_set_blocked_async (pad, FALSE, (GstPadBlockCallback) pad_unblocked,
|
|
||||||
src);
|
|
||||||
|
|
||||||
/* activate the streams */
|
/* activate the streams */
|
||||||
GST_OBJECT_LOCK (src);
|
GST_OBJECT_LOCK (src);
|
||||||
if (!src->need_activate)
|
if (!src->need_activate)
|
||||||
|
@ -862,12 +860,17 @@ pad_blocked (GstPad * pad, gboolean blocked, GstRTSPSrc * src)
|
||||||
|
|
||||||
gst_rtspsrc_activate_streams (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;
|
return;
|
||||||
|
|
||||||
was_ok:
|
was_ok:
|
||||||
{
|
{
|
||||||
GST_OBJECT_UNLOCK (src);
|
GST_OBJECT_UNLOCK (src);
|
||||||
return;
|
goto unblock;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue