Asynchronous state change

Luis de Bethencourt luis at debethencourt.com
Thu Feb 19 02:51:05 PST 2015


Hello Alicia,

You can listen for messages in the pipeline's bus, and wait for the message
"GST_MESSAGE_STATE_CHANGED".

There is an example using it here:
http://docs.gstreamer.com/plugins/viewsource/viewpagesrc.action?pageId=327798

And some relevant reading material:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-statemanage-states.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html

Hope that helps :)
Luis


On 19 February 2015 at 10:40, Alicia Romero <alromor84 at gmail.com> wrote:

> Hi List,
> I want to change the state of a pipeline and wait till the pipeline has
> the wanted state.
> Is there a way to know when the pipeline has change to the state we set
> before?
>
> Thank!!
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150219/a245360d/attachment.html>


More information about the gstreamer-devel mailing list