<div dir="ltr">Hello<div><br></div><div>I am a newbie in gstreamer and have several questions about gstreamer. I am sorry if it is a silly question.</div><div><br></div><div>According to <a href="http://lists.freedesktop.org/archives/gstreamer-devel/2006-July/012776.html">http://lists.freedesktop.org/archives/gstreamer-devel/2006-July/012776.html</a> ( gst_element_set_state hangs ? ), Mike said that</div>
<div>"You are not - ever - allowed to call gst_element_set_state() from one of</div><div>these streaming threads."</div><div><br></div><div>And according to <a href="http://lists.freedesktop.org/archives/gstreamer-devel/2011-January/030114.html">http://lists.freedesktop.org/archives/gstreamer-devel/2011-January/030114.html</a> ( What is 'streaming thread'? ), 'streaming thread' is a<span style="color:rgb(0,0,0);white-space:pre-wrap">ny thread not created by the application, but by GStreamer.</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Q1) In gstreamer user's point of view, where can I meet 'streaming thread'? Should I assume that all callback functions(ex. typefind have-type callback, pad-added callback, etc) run in 'streaming thread'? Are there any other 'streaming thread' cases other than the callback functions?</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Q2) Are there any allowed scenarios where </span>gst_element_set_state() can be called in the streaming thread?</div>
<div>I am a little bit confused, because according to <a href="http://debathena.mit.edu/trac/browser/trunk/third/gstreamer/docs/manual/helloworld2.xml?rev=21005">http://debathena.mit.edu/trac/browser/trunk/third/gstreamer/docs/manual/helloworld2.xml?rev=21005</a>, gst_element_set_state() is called in gst_play_have_type callback function.</div>
<div><br></div><div>Q3) Are there any other gstreamer APIs not allowed to be called in the 'streaming thread'?</div><div><br></div><div>Best regards,<br></div><div><div>Taeho</div>-- <br>Taeho Oh ( <a href="mailto:ohhara@postech.edu" target="_blank">ohhara@postech.edu</a> )                       <a href="http://ohhara.sarang.net" target="_blank">http://ohhara.sarang.net</a><br>
Postech ( Pohang University of Science and Technology ) <a href="http://www.postech.edu" target="_blank">http://www.postech.edu</a><br>Alticast Corp.                                         <a href="http://www.alticast.com" target="_blank">http://www.alticast.com</a>
</div></div>