From 3df54c6bf2e5bc03b2dedcd60006d8f1df204ea3 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 2 Jan 2011 10:06:21 +0000 Subject: rtsp: Add a method parameter to ff_rtsp_read_reply Originally committed as revision 26189 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/rtsp.h') diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index ba0526052b..c0e025110d 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -434,13 +434,15 @@ int ff_rtsp_send_cmd(AVFormatContext *s, const char *method, * data packets (if they are encountered), until a reply * has been fully parsed. If no more data is available * without parsing a reply, it will return an error. + * @param method the RTSP method this is a reply to. This affects how + * some response headers are acted upon. May be NULL. * * @return 1 if a data packets is ready to be received, -1 on error, * and 0 on success. */ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, unsigned char **content_ptr, - int return_on_interleaved_data); + int return_on_interleaved_data, const char *method); /** * Skip a RTP/TCP interleaved packet. -- cgit v1.2.3