diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2010-03-24 22:38:48 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2010-03-24 22:38:48 +0000 |
commit | 7ed8211b3ea2163cfdce3ee0b085ed27e202b08c (patch) | |
tree | 1de398773caa834b1ccb394ddc8b6f0e48a2be85 /libavformat/rtsp.c | |
parent | 9405f733d90f64ee45f47a253056c09caa7bf838 (diff) | |
download | ffmpeg-7ed8211b3ea2163cfdce3ee0b085ed27e202b08c.tar.gz |
Issue a warning if the received CSeq isn't the expected one
Originally committed as revision 22661 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 19175a07fb..62ba8b11ed 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -974,6 +974,11 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, else av_free(content); + if (rt->seq != reply->seq) { + av_log(s, AV_LOG_WARNING, "CSeq %d expected, %d received.\n", + rt->seq, reply->seq); + } + /* EOS */ if (reply->notice == 2101 /* End-of-Stream Reached */ || reply->notice == 2104 /* Start-of-Stream Reached */ || |