Force stopping a gstreamer pipeline

Sebastian Dröge sebastian at centricular.com
Fri Jun 3 09:18:24 UTC 2016


On Fr, 2016-06-03 at 10:51 +0200, Thomas Scheuermann wrote:
> Hello,
> 
> is there a way to force the stopping of a gstreamer pipeline?
> We have here a process running with several pipelines which are
> started
> and stopped dynamically. Sometimes it happens that when I set the
> state
> of the pipeline to GST_STATE_NULL (gst_element_set_state(_pipeline,
> GST_STATE_NULL);) this call never comes back.
> What can I do in this situation?
> I use gstreamer 1.8.1

The only way for this to not return is if there is a bug in one of the
elements used by the pipeline, and e.g. the thread is deadlocking.
There's not really anything you can do at that point other than fixing
that bug, or isolating the GStreamer pipeline code in separate threads
(or even processes that can just be killed if needed) so that
deadlocking threads are not taking down the application.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160603/0240b893/attachment.sig>


More information about the gstreamer-devel mailing list