mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-20 14:46:24 +00:00
jitterbuffer: fix typo when calculating max_misorder_time
This commit is contained in:
parent
98fc0d5bd6
commit
18f08ae5dc
3 changed files with 4 additions and 5 deletions
|
@ -109,7 +109,7 @@ extern "C" {
|
|||
time_ms: c_int,
|
||||
) -> c_uint;
|
||||
#[allow(dead_code)]
|
||||
pub fn gst_rtp_packet_rate_ctx_get_max_disorder(
|
||||
pub fn gst_rtp_packet_rate_ctx_get_max_misorder(
|
||||
ctx: *mut RTPPacketRateCtx,
|
||||
time_ms: c_int,
|
||||
) -> c_uint;
|
||||
|
|
|
@ -402,7 +402,7 @@ impl SinkHandler {
|
|||
inner.packet_rate_ctx.update(seq, rtptime);
|
||||
|
||||
let max_dropout = inner.packet_rate_ctx.max_dropout(max_dropout_time as i32);
|
||||
let max_misorder = inner.packet_rate_ctx.max_dropout(max_misorder_time as i32);
|
||||
let max_misorder = inner.packet_rate_ctx.max_misorder(max_misorder_time as i32);
|
||||
|
||||
pts = state
|
||||
.jbuf
|
||||
|
|
|
@ -195,9 +195,8 @@ impl RTPPacketRateCtx {
|
|||
unsafe { ffi::gst_rtp_packet_rate_ctx_get_max_dropout(&mut *self.0, time_ms) }
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn max_disorder(&mut self, time_ms: i32) -> u32 {
|
||||
unsafe { ffi::gst_rtp_packet_rate_ctx_get_max_disorder(&mut *self.0, time_ms) }
|
||||
pub fn max_misorder(&mut self, time_ms: i32) -> u32 {
|
||||
unsafe { ffi::gst_rtp_packet_rate_ctx_get_max_misorder(&mut *self.0, time_ms) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue