summaryrefslogtreecommitdiffstats
path: root/gst/rtsp/gstrtspsrc.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-01-22 12:21:29 +0100
committerWim Taymans <wim@wtay.(none)>2009-01-22 12:21:29 +0100
commit16799b6b16c2fe524ea63016781c86304c2f7275 (patch)
tree8b8dd010de42615bbb2acd9740901a5ca9e0750a /gst/rtsp/gstrtspsrc.c
parent4e3472ae6fa64b80c9038a8acaf115d1a7e291c4 (diff)
Free leftover udp ports (if any) when a setup request fails.
Diffstat (limited to 'gst/rtsp/gstrtspsrc.c')
-rw-r--r--gst/rtsp/gstrtspsrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 6bc6fc37..79455cd1 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;
}