Send EOS - C++ Deepstream GazeNet App

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) AGX Orin
• DeepStream Version 6.1
• JetPack Version (valid for Jetson only) 5.01
• TensorRT Version 8.4
• 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)

Hi

I have developed a C++ GazeNet app based on the reference app, however have real-time streaming from USB camera and a pipeline that utilizes a tee to simultaneously write the stream with the inferenced output to a file.

My question is how to send an EOS to ensure the file is closed and can be opened. In a similar Python pipeline I use the keyboard interrupt exception to handle the EOS. How so I do that in C++ or should I be using a better way?

Thank you for any help.

solved using:

Thank you @ClementDps