How to call gstreamer method another thread

I want to call g_main_loop_quit(loop); function called another thread, they belong to different cpp files .

Static void VideoStreamer::main_loop_quit(gpointer *data)
static GMainLoop loop = (GMainLoop) data;
g_main_loop_quit (loop);

I want to call this method with a different thread but it doesn’t work…
Ty for helping…

Please check the sampls and see if it can be applied to your use-case:


For a more complicated use-case, you can take a look at:
deepstream_reference_apps/runtime_source_add_delete at master · NVIDIA-AI-IOT/deepstream_reference_apps · GitHub

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.