Deadlock on setting queue to NULL state in PAUSED pipeline

Sebastian Dröge sebastian at centricular.com
Tue Dec 24 01:38:50 PST 2013


On Di, 2013-12-24 at 02:28 +0200, Andrey Utkin wrote:
> 2013/12/21 Sebastian Dröge <sebastian at centricular.com>:
> > Take a look at pad probes, especially the idle probe. From that probe
> > callback you can safely relink elements inside a pipeline, even in
> > PLAYING state. PAUSED state might be a bit dangerous because of what I
> > mentioned above (the pad might never become idle).
> 
> I tried doing gst_element_release_request_pad() from that sourcepad
> idle probe callback. It works strage, the callback can be called
> either from same thread that does gst_pad_add_probe(), or
> asynchronously from within pad's task thread.

Yes, it is called immediately if the pad is idle already and otherwise
from the pad's streaming thread as soon as it becomes idle.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131224/126a3b83/attachment.pgp>


More information about the gstreamer-devel mailing list