I have done the test to unplug the network cable from the camera then replug it again. The program just stops with receiving an EOS signal then quit the loop. I commented the loop.quit(), but the loop wont recover.
When the rtspsrc generats EOS when some special control messages are received from the RTSP server. So the RTSP session ends and no connection between the client and sever anymore. gst/rtsp/gstrtspsrc.c · 1.14 · GStreamer / gst-plugins-good · GitLab It is correct to quit the g_main_loop because there is no rtsp context in rtspsrc in this stage, the plugin state should be changed to NULL. ‘g_main_loop_run ()’ will return. You can restart the rtsp session after 'g_main_loop_run()" from the beginning.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.