1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
This commit is contained in:
Martin Storsjo 2011-01-24 09:49:03 +00:00 committed by Janne Grunau
parent 93e7490ee0
commit aeb2de1c82

View File

@ -1271,12 +1271,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
return 0; return 0;
fail: fail:
for (i = 0; i < rt->nb_rtsp_streams; i++) { ff_rtsp_undo_setup(s);
if (rt->rtsp_streams[i]->rtp_handle) {
url_close(rt->rtsp_streams[i]->rtp_handle);
rt->rtsp_streams[i]->rtp_handle = NULL;
}
}
return err; return err;
} }