Skip to content
Snippets Groups Projects
Commit aeb2de1c authored by Martin Storsjo's avatar Martin Storsjo Committed by Janne Grunau
Browse files

rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request

parent 93e7490e
No related branches found
No related tags found
No related merge requests found
...@@ -1271,12 +1271,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment