cargo fmt
This commit is contained in:
parent
dadbd443a5
commit
7d2fb0def1
@ -90,7 +90,7 @@ enum DepacketizerInputState {
|
|||||||
PostMark {
|
PostMark {
|
||||||
timestamp: crate::Timestamp,
|
timestamp: crate::Timestamp,
|
||||||
loss: u16,
|
loss: u16,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Depacketizer {
|
impl Depacketizer {
|
||||||
@ -376,15 +376,21 @@ impl Depacketizer {
|
|||||||
for (i, nal) in self.nals.iter().enumerate() {
|
for (i, nal) in self.nals.iter().enumerate() {
|
||||||
let _ = write!(&mut nals, "\n {}: {:?}", i, nal.hdr);
|
let _ = write!(&mut nals, "\n {}: {:?}", i, nal.hdr);
|
||||||
}
|
}
|
||||||
warn!("bad access unit (ended by {}) at ts {}\nerrors are:{}\nNALs are:{}",
|
warn!(
|
||||||
reason, au.timestamp, errs, nals);
|
"bad access unit (ended by {}) at ts {}\nerrors are:{}\nNALs are:{}",
|
||||||
|
reason, au.timestamp, errs, nals
|
||||||
|
);
|
||||||
} else if log_enabled!(log::Level::Trace) {
|
} else if log_enabled!(log::Level::Trace) {
|
||||||
let mut nals = String::new();
|
let mut nals = String::new();
|
||||||
for (i, nal) in self.nals.iter().enumerate() {
|
for (i, nal) in self.nals.iter().enumerate() {
|
||||||
let _ = write!(&mut nals, "\n {}: {:?}", i, nal.hdr);
|
let _ = write!(&mut nals, "\n {}: {:?}", i, nal.hdr);
|
||||||
}
|
}
|
||||||
trace!("access unit (ended by {}) at ts {}; NALS are:{}",
|
trace!(
|
||||||
reason, au.timestamp, nals);
|
"access unit (ended by {}) at ts {}; NALS are:{}",
|
||||||
|
reason,
|
||||||
|
au.timestamp,
|
||||||
|
nals
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -470,7 +476,11 @@ impl Depacketizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl AccessUnit {
|
impl AccessUnit {
|
||||||
fn start(pkt: &crate::client::rtp::Packet, additional_loss: u16, same_ts_as_prev: bool) -> Self {
|
fn start(
|
||||||
|
pkt: &crate::client::rtp::Packet,
|
||||||
|
additional_loss: u16,
|
||||||
|
same_ts_as_prev: bool,
|
||||||
|
) -> Self {
|
||||||
AccessUnit {
|
AccessUnit {
|
||||||
start_ctx: pkt.ctx,
|
start_ctx: pkt.ctx,
|
||||||
end_ctx: pkt.ctx,
|
end_ctx: pkt.ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user