<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1492423383795_5959">Hi,</div><div id="yui_3_16_0_ym19_1_1492423383795_5958"><br></div><div id="yui_3_16_0_ym19_1_1492423383795_5935">Had a quick look at your code.</div><div id="yui_3_16_0_ym19_1_1492423383795_6108"> I am not sure but it could be that you have infinite recursion in your bus callback handling.</div><div id="yui_3_16_0_ym19_1_1492423383795_6009"><br></div><div id="yui_3_16_0_ym19_1_1492423383795_6106">Are you sure that the following line is correct:<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492423383795_6109"> GStreamer::StartWaitgLoop(&GStreamer::BusCallback);<br></div><div id="yui_3_16_0_ym19_1_1492423383795_5914" dir="ltr"><span id="yui_3_16_0_ym19_1_1492423383795_6137">and that it points to the derived callback as intended and not to the root callback?</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492423383795_6142"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492423383795_6143"><span>Philippe.</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> Le Vendredi 14 avril 2017 9h18, Mikl <michael.yarochkin@timetronics.be> a écrit :<br></font></div> <br><br> <div class="y_msg_container"><div dir="ltr">Hello, filnet<br clear="none"><br clear="none">Thank you for the answer.<br clear="none"><br clear="none">I am aware about blocking nature of g_main_loop_run(). That's why i run<br clear="none">reader and writer in parallel threads.<br clear="none">Or it is the same for the loop: i can call g_main_loop_run() from different<br clear="none">threads, but it will block on the same object? In this case, i can believe,<br clear="none">what running second loop from another thread is causing exception.<br clear="none"><br clear="none">Here is my code:<br clear="none">GStreamer is base class. Contain basic functions<br clear="none">GStreamerWriter and GStreamerReader contain specific functions. inherit from<br clear="none">GStreamer.<br clear="none">GStreamePlayer, GStreameInspector and GStreameRecorder are realizations.<br clear="none"><br clear="none">I want to run all three in parallel in my application.<br clear="none"><br clear="none">GStreamer.7z<br clear="none"><<a shape="rect" href="http://gstreamer-devel.966125.n4.nabble.com/file/n4682664/GStreamer.7z" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4682664/GStreamer.7z</a>> <br clear="none"><br clear="none">Thank you in advance.<br clear="none">Mikl<br clear="none"><br clear="none"><br clear="none"><br clear="none">--<br clear="none">View this message in context: <a shape="rect" href="http://gstreamer-devel.966125.n4.nabble.com/Multiple-loops-in-one-library-tp4682638p4682664.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Multiple-loops-in-one-library-tp4682638p4682664.html</a><div class="yqt6112190618" id="yqtfd52741"><br clear="none">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br clear="none">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a shape="rect" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"></div></div><br><br></div> </div> </div> </div></div></body></html>