mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
rtpjitterbuffer: reset skew does not reset clock-rate
Don't reset the clock-rate when we reset the skew correction algorithm. Reset the skew correction algorithm when we change the clock-rate.
This commit is contained in:
parent
03d520eb69
commit
6e7d547be4
1 changed files with 1 additions and 5 deletions
|
@ -182,11 +182,8 @@ rtp_jitter_buffer_set_clock_rate (RTPJitterBuffer * jbuf, guint32 clock_rate)
|
||||||
GST_WARNING ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
|
GST_WARNING ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
|
||||||
G_GUINT32_FORMAT, jbuf->clock_rate, clock_rate);
|
G_GUINT32_FORMAT, jbuf->clock_rate, clock_rate);
|
||||||
}
|
}
|
||||||
jbuf->base_time = -1;
|
|
||||||
jbuf->base_rtptime = -1;
|
|
||||||
jbuf->clock_rate = clock_rate;
|
jbuf->clock_rate = clock_rate;
|
||||||
jbuf->prev_out_time = -1;
|
rtp_jitter_buffer_reset_skew (jbuf);
|
||||||
jbuf->prev_send_diff = -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +213,6 @@ rtp_jitter_buffer_reset_skew (RTPJitterBuffer * jbuf)
|
||||||
jbuf->base_time = -1;
|
jbuf->base_time = -1;
|
||||||
jbuf->base_rtptime = -1;
|
jbuf->base_rtptime = -1;
|
||||||
jbuf->base_extrtp = -1;
|
jbuf->base_extrtp = -1;
|
||||||
jbuf->clock_rate = -1;
|
|
||||||
jbuf->ext_rtptime = -1;
|
jbuf->ext_rtptime = -1;
|
||||||
jbuf->last_rtptime = -1;
|
jbuf->last_rtptime = -1;
|
||||||
jbuf->window_pos = 0;
|
jbuf->window_pos = 0;
|
||||||
|
|
Loading…
Reference in a new issue