How to call gstreamer method another thread

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

Example;
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…

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

/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps

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.