<div dir="ltr"><div><div>Hello Alicia,<br><br></div>You can listen for messages in the pipeline's bus, and wait for the message "GST_MESSAGE_STATE_CHANGED".<br><br></div>There is an example using it here:<br><a href="http://docs.gstreamer.com/plugins/viewsource/viewpagesrc.action?pageId=327798">http://docs.gstreamer.com/plugins/viewsource/viewpagesrc.action?pageId=327798</a><br><br><div>And some relevant reading material:<br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html</a><br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-statemanage-states.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-statemanage-states.html</a><br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html</a><br><br></div><div>Hope that helps :)<br></div><div>Luis<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 February 2015 at 10:40, Alicia Romero <span dir="ltr"><<a href="mailto:alromor84@gmail.com" target="_blank">alromor84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi List,<br></div>I want to change the state of a pipeline and wait till the pipeline has the wanted state. <br></div>Is there a way to know when the pipeline has change to the state we set before?<br><br></div>Thank!!<br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>