How to exit pipeline?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

hello,
My pipeline like this uridecodebin->videoconvert->fakesink, input is mp4 file, if I want to exit pipeline, anthor pthread how control pipeline exit, I try to gboolean result = gst_element_send_event(Pipeline, gst_event_new_eos()); but bus_call callback function cannot receive GST_MESSAGE_EOS. I have to g_main_loop_quit(mainLoop), it’s right?

Yes. You should quit the main_loop. You can refer to our source code below.

sources\apps\sample_apps\deepstream-app\deepstream_app_main.c
static gboolean
event_thread_func (gpointer arg)
{
...
    case 'q':
      quit = TRUE;
      g_main_loop_quit (main_loop);
      ret = FALSE;
      break;
...

thank you!

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