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:
* gst/rtp/gstrtpgsmdepay.c:
* gst/rtp/gstrtph263pdepay.c:
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
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)
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;
}
}