Multiple loops in one library

philippe renon philippe_renon at yahoo.fr
Mon Apr 17 10:12:11 UTC 2017


Hi,
Had a quick look at your code. I am not sure but it could be that you have infinite recursion in your bus callback handling.
Are you sure that the following line is correct:
    GStreamer::StartWaitgLoop(&GStreamer::BusCallback);
and that it points to the derived callback as intended and not to the root callback?
Philippe. 

    Le Vendredi 14 avril 2017 9h18, Mikl <michael.yarochkin at timetronics.be> a écrit :
 

 Hello, filnet

Thank you for the answer.

I am aware about blocking nature of g_main_loop_run(). That's why i run
reader and writer in parallel threads.
Or it is the same for the loop: i can call g_main_loop_run() from different
threads, but it will block on the same object? In this case, i can believe,
what running second loop from another thread is causing exception.

Here is my code:
GStreamer is base class. Contain basic functions
GStreamerWriter and GStreamerReader contain specific functions. inherit from
GStreamer.
GStreamePlayer, GStreameInspector and GStreameRecorder are realizations.

I want to run all three in parallel in my application.

GStreamer.7z
<http://gstreamer-devel.966125.n4.nabble.com/file/n4682664/GStreamer.7z>  

Thank you in advance.
Mikl



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Multiple-loops-in-one-library-tp4682638p4682664.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170417/b9dadfc0/attachment.html>


More information about the gstreamer-devel mailing list