<div> </div>
<div> g_main_loop_quit can be used inside the bus callback handler , once you get the NULL state of pipeline .  </div>
<div><br> </div>
<div class="gmail_quote">On Mon, Jul 19, 2010 at 10:38 AM, Sandeep Prakash <span dir="ltr">&lt;<a href="mailto:123sandy@gmail.com">123sandy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>Hi,<br>
<div class="im"><br><br>djlorenzoc wrote:<br>&gt;<br>&gt;  /* we add all elements into the pipeline */<br>&gt;   gst_bin_add_many (GST_BIN (pipeline),<br>&gt;                     source, videorate, filter, encoder, payloader, sink,<br>
&gt; NULL);<br>&gt;   gst_element_link_many (source, videorate, filter, encoder, payloader,<br>&gt; sink, NULL);<br>&gt;<br></div>What is the role of the &quot;filter&quot; element here?<br>
<div class="im"><br><br>djlorenzoc wrote:<br>&gt;<br>&gt; I want to control its state from an external program,but I saw that<br>&gt; g_main_loop_run() blocks the execution of the pipe.<br>&gt;<br></div>By external program you mean from a different process launched from the same<br>
application, or a completely different program, or a different thread?? Plz<br>Explain.<br>
<div class="im"><br><br>djlorenzoc wrote:<br>&gt;<br>&gt; 1) Control the state of the pipe: when I want to stop stream I set the<br>&gt; pipe to the READY state; when I want to stream I set it to PLAY. I think<br>&gt; that in this way I reduce the launch time of the pipe. Is it exactly?<br>
&gt; Have I to add a bus? Can anyone suggest me a possible solution?<br>&gt;<br></div>You can add a bus watch as follows:<br>gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer data)<br>{<br>}<br>.<br>.<br>.<br>bus = gst_pipeline_get_bus (GST_PIPELINE(pipeline));<br>
gst_bus_add_watch (bus, bus_call, NULL);<br>gst_object_unref (bus);<br>
<div class="im"><br><br><br>djlorenzoc wrote:<br>&gt;<br>&gt; 2) Launch a g_main_loop_quit.<br>&gt; What do you think about? Is it possible to do that?<br>&gt;<br></div>Not sure what is &quot;Launching a g_main_loop_quit&quot; is? Plz Explain.<br>
<br><br>Regards,<br>Sandeep<br><font color="#888888">--<br>View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-control-state-of-a-video-streaming-pipeline-g-main-loop-run-tp2292629p2293553.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-control-state-of-a-video-streaming-pipeline-g-main-loop-run-tp2292629p2293553.html</a><br>
</font>
<div>
<div></div>
<div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br><br>------------------------------------------------------------------------------<br>This SF.net email is sponsored by Sprint<br>What will you do first with EVO, the first 4G phone?<br>
Visit <a href="http://sprint.com/first" target="_blank">sprint.com/first</a> -- <a href="http://p.sf.net/sfu/sprint-com-first" target="_blank">http://p.sf.net/sfu/sprint-com-first</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>