rtpjitterbuffer: set correct expected time

When we already have a timer for a packet, skip it but don't forget to adjust
the dts to the expected dts of the next packet.
This commit is contained in:
Wim Taymans 2013-09-20 10:42:27 +02:00
parent 517ea0f4d9
commit a512cc2d3c

View file

@ -1783,8 +1783,10 @@ calculate_expected (GstRtpJitterBuffer * jitterbuffer, guint32 expected,
if (priv->do_retransmission) {
type = TIMER_TYPE_EXPECTED;
/* if we had a timer for the first missing packet, leave it. */
if (find_timer (jitterbuffer, type, expected))
if (find_timer (jitterbuffer, type, expected)) {
expected++;
expected_dts += duration;
}
} else {
type = TIMER_TYPE_LOST;
}