Safely access a gstreamer element ( appsink) from an external thread
Nostalgia
akra.hanine at gmail.com
Fri Jun 8 14:03:30 UTC 2018
Hi,
I have this pipeline : appsrc -> omxh264enc -> capsfilter -> appsink
I want to run this pipeline without using g_main_loop, I will send frames
one by one to the pipeline (from external application and continuously) so I
want to create a thread that pull buffers received by appsink. This thread
runs indefinitely until it is signaled to stop . It keeps on trying to pull
a buffer from the sink.
Is it possible to do that. I am worried about trying to pull buffers from
sink in a new thread and how I can safe access the sink (using mutex ...)
when it is used by the gstreamer thread.
Regards,
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list