Browse Source

rtpdec: add a trace when jitter buffer is full

This commit adds a warning trace when jitter buffer
is full. It helps to understand leading decoding issues.

Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n3.0
Eloi BAIL Martin Storsjö 9 years ago
parent
commit
ff7f6ea9db
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavformat/rtpdec.c

+ 4
- 1
libavformat/rtpdec.c View File

@@ -804,8 +804,11 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt,
*bufptr = NULL;
/* Return the first enqueued packet if the queue is full,
* even if we're missing something */
if (s->queue_len >= s->queue_size)
if (s->queue_len >= s->queue_size) {
av_log(s->st ? s->st->codec : NULL, AV_LOG_WARNING,
"jitter buffer full\n");
return rtp_parse_queued_packet(s, pkt);
}
return -1;
}
}


Loading…
Cancel
Save