pipeline doesn't send send GST_MESSAGE_STATE_CHANGED when changing to NULL

Sebastian Dröge sebastian at centricular.com
Tue Feb 23 09:12:13 UTC 2016


On Di, 2016-02-23 at 00:59 -0800, George Yunaev wrote:
> Hi all,
> 
> The pipeline correctly send GST_MESSAGE_STATE_CHANGED messages when its 
> state changes from NULL to READY, from READY to PAUSED and so on. The 
> only message I cannot get is pipeline change from READY to NULL when I 
> set gst_element_set_state ( pipeline, GST_STATE_NULL );
> 
> I can receive changes to the NULL state for the pipeline elements, and 
> currently use them to detect when the pipeline is stopped and the bus 
> thread must exist gst_bus_timed_pop_filtered. However I do not receive 
> this message for the pipeline itself. Is it not supposed to be sent?

The GstBus of the pipeline is set to flushing when going from READY to
NULL, that's why the READY->NULL state change message never arrives at
your application and just disappears.

-- 
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/20160223/be7bf555/attachment.sig>


More information about the gstreamer-devel mailing list