Hi again, thanks for the reply.<br><br><div><span class="gmail_quote">On 2/8/07, <b class="gmail_sendername">Stefan Kost</b> &lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi,<br>Christoffer Nyborg wrote:<br>&gt; Hi<br>&gt;<br>&gt; I&#39;m writing an application where I might need to interrupt playback.<br>&gt; From what I&#39;ve read I&#39;m supposed to change the state with<br>&gt; gst_element_set_state (pipeline, GST_STATE_NULL);
<br>&gt; but I&#39;m unable to because<br>&gt; g_main_loop_run (loop);<br>&gt; is blocking. How can I solve this? Can I throw the call<br>&gt; g_main_loop_run (loop);<br>&gt; into another thread or something?<br>&gt;<br>Once the mainloop run, all signal handlers will be triggered. 
E.g. if you run a<br>UI, you can do the<br>gst_element_set_state (pipeline, GST_STATE_NULL);<br>call, when the user presses a button. If you do a commandline application, you<br>have to handle that on your own.</blockquote>
<div><br>Yes, because I&#39;m developing a command line application that is my problem, I don&#39;t know how to handle it.<br>If anyone have a suggestion I&#39;d greatly appreciate it.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;<br>&gt; Regards<br>&gt; Christoffer Nyborg<br>&gt;<br>Stefan<br></blockquote></div><br>Regards<br>Christoffer Nyborg