Browse Source

rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
tags/n0.8
Martin Storsjo Janne Grunau 14 years ago
parent
commit
aeb2de1c82
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      libavformat/rtsp.c

+ 1
- 6
libavformat/rtsp.c View File

@@ -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;
}



Loading…
Cancel
Save