<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Hi,</div><div><br></div><div>GStreamer doesn't control the main loop, we only use it to give messages back to the application. It's your responsability to start and stop it. So yes, you must call g_main_loop_quit() to stop it.</div><div><br></div><div>OIivier</div><div><br></div><div>On Tue, 2020-07-14 at 02:07 -0500, umit wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Is it a good idea to just g_main_loop_quit(loop) instead of</pre><pre>gst_element_send_event(gstPipeline, gst_event_new_eos()) to return from</pre><pre>g_main_loop_run (loop)?</pre><pre><br></pre><pre><br></pre><pre><br></pre><pre>--</pre><pre>Sent from: </pre><a href="http://gstreamer-devel.966125.n4.nabble.com/"><pre>http://gstreamer-devel.966125.n4.nabble.com/</pre></a><pre><br></pre><pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a><pre><br></pre></blockquote><div><span><pre>-- <br></pre><div>Olivier CrĂȘte</div><div><a href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</a></div><div><br></div></span></div></body></html>