rtsp: warning when max_delay reached
authorEloi BAIL <eloi.bail@savoirfairelinux.com>
Tue, 15 Sep 2015 15:38:23 +0000 (11:38 -0400)
committerMartin Storsjö <martin@martin.st>
Wed, 16 Sep 2015 06:58:12 +0000 (09:58 +0300)
packets are queued due to packet reordering until the queue reach its
maximal size or max delay is reached.
This commit adds a warning trace when max delay is reached.

Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c

index 90a6b75..d2c99ea 100644 (file)
@@ -2112,6 +2112,8 @@ redo:
     }
     if (len == AVERROR(EAGAIN) && first_queue_st &&
         rt->transport == RTSP_TRANSPORT_RTP) {
+        av_log(s, AV_LOG_WARNING,
+                "max delay reached. need to consume packet\n");
         rtsp_st = first_queue_st;
         ret = ff_rtp_parse_packet(rtsp_st->transport_priv, pkt, NULL, 0);
         goto end;