mirror of https://git.videolan.org/git/ffmpeg.git
rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit aeb2de1c82
)
This commit is contained in:
parent
abbc1d272e
commit
3f44e3c91a
|
@ -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