From 900b20e280109bc5296525cd6a3a53024e45369a Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 7 Jan 2015 15:53:49 +0100 Subject: [PATCH] SAT>IP: Trace RTP discontinuity --- src/input/mpegts/satip/satip_frontend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 53461f78..a4f719bb 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1429,8 +1429,10 @@ new_tune: nseq = (p[2] << 8) | p[3]; if (seq == -1) seq = nseq; - else if (((seq + 1) & 0xffff) != nseq) + else if (((seq + 1) & 0xffff) != nseq) { unc += ((c - pos) / 188) * (uint32_t)((uint16_t)nseq-(uint16_t)(seq+1)); + tvhtrace("satip", "RTP discontinuity (%i != %i)", seq + 1, nseq); + } seq = nseq; /* Process */ tsdebug_write((mpegts_mux_t *)lm, p + pos, c - pos);