From 16799b6b16c2fe524ea63016781c86304c2f7275 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 22 Jan 2009 12:21:29 +0100 Subject: [PATCH] Free leftover udp ports (if any) when a setup request fails. --- gst/rtsp/gstrtspsrc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 6bc6fc371f..79455cd178 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -3973,6 +3973,8 @@ gst_rtspsrc_setup_streams (GstRTSPSrc * src) gst_rtspsrc_stream_free_udp (stream); continue; default: + /* cleanup of leftover transport and move to the next stream */ + gst_rtspsrc_stream_free_udp (stream); goto response_error; }