Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2011-01-24 12:49:03 +0300
committerJanne Grunau <janne-ffmpeg@jannau.net>2011-01-25 00:46:43 +0300
commitaeb2de1c82f95b74e184992a10523606f4b341fa (patch)
tree1adbde9c2776311b96f6e1d073543437ba597a3a /libavformat/rtsp.c
parent93e7490ee0c456d7e0fa43e3bf2cb4a8eed19194 (diff)
rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index dcceb68a25..dddaaf4237 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1271,12 +1271,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
return 0;
fail:
- for (i = 0; i < rt->nb_rtsp_streams; i++) {
- if (rt->rtsp_streams[i]->rtp_handle) {
- url_close(rt->rtsp_streams[i]->rtp_handle);
- rt->rtsp_streams[i]->rtp_handle = NULL;
- }
- }
+ ff_rtsp_undo_setup(s);
return err;
}