mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
jitterbuffer: small cleanup
This commit is contained in:
parent
0e41414926
commit
f6b6797874
1 changed files with 3 additions and 4 deletions
|
@ -1400,9 +1400,6 @@ remove_timer (GstRtpJitterBuffer * jitterbuffer, TimerData * timer)
|
||||||
GstRtpJitterBufferPrivate *priv = jitterbuffer->priv;
|
GstRtpJitterBufferPrivate *priv = jitterbuffer->priv;
|
||||||
guint idx;
|
guint idx;
|
||||||
|
|
||||||
if (timer == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (priv->clock_id && priv->timer_seqnum == timer->seqnum)
|
if (priv->clock_id && priv->timer_seqnum == timer->seqnum)
|
||||||
unschedule_current_timer (jitterbuffer);
|
unschedule_current_timer (jitterbuffer);
|
||||||
|
|
||||||
|
@ -1475,7 +1472,9 @@ update_timers (GstRtpJitterBuffer * jitterbuffer, guint16 seqnum,
|
||||||
else
|
else
|
||||||
timer = add_timer (jitterbuffer, TIMER_TYPE_EXPECTED,
|
timer = add_timer (jitterbuffer, TIMER_TYPE_EXPECTED,
|
||||||
priv->next_in_seqnum, expected);
|
priv->next_in_seqnum, expected);
|
||||||
} else {
|
} else if (timer) {
|
||||||
|
/* if we had a timer, remove it, we don't know when to expect the next
|
||||||
|
* packet. */
|
||||||
remove_timer (jitterbuffer, timer);
|
remove_timer (jitterbuffer, timer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue