<div dir="ltr">You can also use gst_element_get_state (in conjunction with a previous gst_element_set_state) with an infinite timeout to have your execution blocked until the desired state has been reached.<div><br></div><div>For more info see: </div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-get-state" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-get-state</a></div><div><br></div><div>Cheers</div><div>Sérgio</div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-19 11:53 GMT+01:00 Luis de Bethencourt <span dir="ltr"><<a href="mailto:luis@debethencourt.com" target="_blank">luis@debethencourt.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Better link to the example:<br><a href="http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+3%3A+Dynamic+pipelines" target="_blank">http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+3%3A+Dynamic+pipelines</a><br><br></div>In this one you can see the index on the left listing the other tutorials leading to this.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Luis<br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 19 February 2015 at 10:51, Luis de Bethencourt <span dir="ltr"><<a href="mailto:luis@debethencourt.com" target="_blank">luis@debethencourt.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>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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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"><div><div>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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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></div>