GstRtpJitterBufferPrivate *priv = jitterbuffer->priv;
GstClockTime total_duration, duration, expected_dts;
TimerType type;
- guint lost_packets = 0;
GST_DEBUG_OBJECT (jitterbuffer,
"dts %" GST_TIME_FORMAT ", last %" GST_TIME_FORMAT,
if (total_duration > priv->latency_ns) {
GstClockTime gap_time;
+ guint lost_packets;
gap_time = total_duration - priv->latency_ns;
priv->last_in_dts += gap_time;
}
- expected_dts = priv->last_in_dts + (lost_packets + 1) * duration;
+ expected_dts = priv->last_in_dts + duration;
if (priv->do_retransmission) {
TimerData *timer;