Skip to content

rtsp-stream: clear sockets when leaving bin

Mikhail Rudenko requested to merge xzz53/gstreamer:rtsp-stream-fix into main

Since commit 4d86f994, when setting an RTSP media both shared and reusable, streaming cannot be restarted after the first time all the clients disconnect. That happens because the sockets (unlike addresses) of GstRTSPStream are not cleared in gst_rtsp_stream_leave_bin, and on restart sockets and addresses are not allocated in gst_rtsp_stream_allocate_udp_sockets, and then the check in create_sender_part fails. Fix this by clearing sockets in gst_rtsp_stream_leave_bin.

Fixes gst-rtsp-server#113 (moved)

Merge request reports

Loading