Multiple loops in one library
Mikl
michael.yarochkin at timetronics.be
Wed Apr 12 14:54:08 UTC 2017
Hello,
Can i have multiple GMainLoop independent objects inside of one
library(dll)?
My wish is to process multiple steams in one container.
Or it is "one for all" and can be different only inside of other
library(dll)?
My wish :
If i have "recorder" and "reader" classes in different threads, but defined
in the same library(dll):
GMainLoop* readerLoop = g_main_loop_new(NULL, FALSE);
GMainLoop* wriretLoop = g_main_loop_new(NULL, FALSE);
Both have pipelines:
GstElement* readerPipeline;
GstElement* writerPipeline;
Later, when i am watching events:
GstBus* readerBus = gst_pipeline_get_bus(GST_PIPELINE(readerPipeline));
gst_bus_add_watch(readerBus , BusCallback, this);
g_main_loop_run(readerLoop);
GstBus* writerBus = gst_pipeline_get_bus(GST_PIPELINE(writerPipeline));
gst_bus_add_watch(writerBus , BusCallback, this);
g_main_loop_run(wriretLoop);
Now, i have exception inside of BusCallback:
Exception thrown at 0x6146F214 (libgstreamer-1.0-0.dll) in MyApp.exe:
0xC0000005: Access violation reading location 0xCDCDCDCD.
Will it work? Is any way to do it?
Thank you in advance.
Mikl
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Multiple-loops-in-one-library-tp4682638.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list