changeset 5880:acbe14fa0c74 libavformat

Issue a warning if the received CSeq isn't the expected one
author lu_zero
date Wed, 24 Mar 2010 22:38:48 +0000
parents 61062082488b
children fd67c6b9f915
files rtsp.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Wed Mar 24 22:32:05 2010 +0000
+++ b/rtsp.c	Wed Mar 24 22:38:48 2010 +0000
@@ -974,6 +974,11 @@
     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 */    ||