Hi again, thanks for the reply.<br><br><div><span class="gmail_quote">On 2/8/07, <b class="gmail_sendername">Stefan Kost</b> <<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>> 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>> Hi<br>><br>> I'm writing an application where I might need to interrupt playback.<br>> From what I've read I'm supposed to change the state with<br>> gst_element_set_state (pipeline, GST_STATE_NULL);
<br>> but I'm unable to because<br>> g_main_loop_run (loop);<br>> is blocking. How can I solve this? Can I throw the call<br>> g_main_loop_run (loop);<br>> into another thread or something?<br>><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'm developing a command line application that is my problem, I don't know how to handle it.<br>If anyone have a suggestion I'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;">
><br>> Regards<br>> Christoffer Nyborg<br>><br>Stefan<br></blockquote></div><br>Regards<br>Christoffer Nyborg