Deepstream video loop

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version 4.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
how to use deepstream analyse when the video at the eos, i can continue to analyse next one

You can choose to not quit when EOS is received

I tried,but it will error when first video source finished.
if i use single primary detector, error message like :

Segmentation fault (core dumped)

if i use two primary detector and two second error message like :

NVDS_APP deepstream_app.cpp:146:bus_callback: ERROR from secondary_gie_1: Internal data stream error.
0:00:20.338225561 16310 0x5560130d8730 ERROR               NVDS_APP deepstream_app.cpp:149:bus_callback: Debug info: gstnvinfer.cpp(1958): gst_nvinfer_output_loop (): /GstPipeline:pipeline/GstBin:secondary_gie_bin/GstNvInfer:secondary_gie_1:
streaming stopped, reason error (-5)
NVDS_APP deepstream_app.cpp:146:bus_callback: ERROR from secondary_gie_0: Internal data stream error.
0:00:20.342944238 16310 0x5560130d8730 ERROR               NVDS_APP deepstream_app.cpp:149:bus_callback: Debug info: gstnvinfer.cpp(1958): gst_nvinfer_output_loop (): /GstPipeline:pipeline/GstBin:secondary_gie_bin/GstNvInfer:secondary_gie_0:
streaming stopped, reason error (-5)
NVDS_APP deepstream_app.cpp:146:bus_callback: ERROR from primary_gie_classifier_1: Internal data stream error.
0:00:20.343843332 16310 0x5560130d8730 ERROR               NVDS_APP deepstream_app.cpp:149:bus_callback: Debug info: gstnvinfer.cpp(1958): gst_nvinfer_output_loop (): /GstPipeline:pipeline/GstBin:primary_gie_bin_1/GstNvInfer:primary_gie_classifier_1:
streaming stopped, reason error (-5)

Please upgrade to DS5.0 and give a try.
If still met issue, please help to open a new topic with more details.
Thanks

ok, I will try