Error when deleting rtsp sources

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: nvcr.io/nvidia/deepstream:5.1-21.02-samples
Hi, I modify deepstream_rt_src_add_del.py in deepstream_python_apps to add and delete rtsp input sources. However I meet this error when I delete the rtsp source:

Error: gst-resource-error-quark: Unhandled error (9): gstrtspsrc.c(6161): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstURIDecodeBin:source-bin-01/GstRTSPSrc:source:
Option not supported (551)

But when I use videos as input sources, it works fine. Could you guys help me with the mentioned issue? Thanks in advance !

Can you provide the modified code for us to reproduce the problem?

Sure.test_add_delete_analytic.py (29.4 KB)

Is this still be an issue? if yes, can you share all the config files you used in the script?

Sorry for late response. Yes, I still have this issue. Here are my config files: dstest_pgie_config.txt (3.8 KB)
dsnvanalytics_tracker_config.txt (1.8 KB)

If you guys need anything else, please just let me know. Thank you very much!