diff options
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c index 641502f..38db2d6 100644 --- a/src/stream.c +++ b/src/stream.c @@ -52,6 +52,12 @@ static void check_rtp_handler(void *arg) debug("stream: last \"%s\" RTP packet: %d milliseconds\n", sdp_media_name(strm->sdp), diff_ms); + /* check for large jumps in time */ + if (diff_ms > (3600 * 1000)) { + strm->ts_last = 0; + return; + } + if (diff_ms > (int)strm->rtp_timeout_ms) { info("stream: no %s RTP packets received for" |