Don't reset the clock-rate when we reset the skew correction algorithm.
Reset the skew correction algorithm when we change the clock-rate.
GST_WARNING ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
G_GUINT32_FORMAT, jbuf->clock_rate, clock_rate);
}
- jbuf->base_time = -1;
- jbuf->base_rtptime = -1;
jbuf->clock_rate = clock_rate;
- jbuf->prev_out_time = -1;
- jbuf->prev_send_diff = -1;
+ rtp_jitter_buffer_reset_skew (jbuf);
}
}
jbuf->base_time = -1;
jbuf->base_rtptime = -1;
jbuf->base_extrtp = -1;
- jbuf->clock_rate = -1;
jbuf->ext_rtptime = -1;
jbuf->last_rtptime = -1;
jbuf->window_pos = 0;