Commit a512cc2d authored by Wim Taymans's avatar Wim Taymans

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.
parent 517ea0f4
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment