mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
517ea0f4d9
commit
a512cc2d3c
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue