From abbc1d272ee382b47d8736368588040c5dd2d90b Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 24 Jan 2011 09:49:02 +0000 Subject: rtsp: Split out a function undoing the setup made by ff_rtsp_make_setup_request Signed-off-by: Janne Grunau (cherry picked from commit 93e7490ee0c456d7e0fa43e3bf2cb4a8eed19194) --- libavformat/rtsp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavformat/rtsp.h') diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 2ef68db18b..6dc64b19ae 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -511,4 +511,10 @@ int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt); int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, int lower_transport, const char *real_challenge); +/** + * Undo the effect of ff_rtsp_make_setup_request, close the + * transport_priv and rtp_handle fields. + */ +void ff_rtsp_undo_setup(AVFormatContext *s); + #endif /* AVFORMAT_RTSP_H */ -- cgit v1.2.3