Rtsp stream lagging after 5 sec

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)- RTX2060
• DeepStream Version-5.0
• TensorRT Version-7.0
• NVIDIA GPU Driver Version (valid for GPU only)-440.33
**• Issue Type- Running inference using DEEPSTREAM on RTSP feed causes lagging and frame drop after 5 second of smooth output. with following warning:
WARNING: from element /GstPipeline:pipeline0/GstEglGlesSink:eglglessink0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstEglGlesSink:eglglessink0:
There may be a timestamping problem, or this computer is too slow.

The pipeline used is: gst-launch-1.0 rtspsrc location=rtsp://admin:password12345@ latency=500 ! queue max-size-bytes=0 max-size-time=0 ! rtph264depay ! nvv4l2decoder ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=720 ! nvinfer config-file-path=$(pwd)/config_infer_primary.txt ! nvvideoconvert ! nvdsosd ! nveglglessink


Please set “sync” property to false for eglglessink plugin and set “live-source” property to true for nvstreammux. https://gstreamer.freedesktop.org/documentation/base/gstbasesink.html?gi-language=c, https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvstreammux.html#gst-properties