Deepstream RTSP reading fails with type=4 but works with multiURI

Deepstream test5app fails when i use type 4 in source plugin for reading RTSP

Failing config:
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=4
uri=rtsp://ip:port/stream.mjpeg
num-sources=1
gpu-id=0

Working Config
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=3
uri=rtsp://ip:port/stream.mjpeg
num-sources=1
gpu-id=0

deepstream version: deepstream4.0
GPU: Geforce GTX 1060

The failing config fails with:
src_elem0:internal data stream error error

Working config prints the following to terminal even if no logs are enabled:
YUV 4:2:0 chroma subsampling
NvJPEG decode complete
size set = 64

For RTSP source , we support H264 or H265 stream parsing, for mjpeg stream, you can use URI or MultiURI source type.

Regarding the logs that get printed on the screen. Can we disable them?

It’s gstreamer logging mechanism, you can not disable it. it’s error information that can help identify where get wrong