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:
parent
93e7490ee0
commit
aeb2de1c82
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user