mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-10 19:25:26 +00:00
fmp4mux: Fix some clippy warnings
This commit is contained in:
parent
191a48ca41
commit
a1553a8411
2 changed files with 3 additions and 4 deletions
|
@ -1727,8 +1727,7 @@ fn write_traf(
|
||||||
|
|
||||||
let mut current_data_offset = 0;
|
let mut current_data_offset = 0;
|
||||||
|
|
||||||
let mut iter = GroupBy::new(cfg.buffers, |a: &Buffer, b: &Buffer| a.idx == b.idx);
|
for run in GroupBy::new(cfg.buffers, |a: &Buffer, b: &Buffer| a.idx == b.idx) {
|
||||||
while let Some(run) = iter.next() {
|
|
||||||
if run[0].idx != idx {
|
if run[0].idx != idx {
|
||||||
// FIXME: What to do with >4GB offsets?
|
// FIXME: What to do with >4GB offsets?
|
||||||
current_data_offset = (current_data_offset as u64
|
current_data_offset = (current_data_offset as u64
|
||||||
|
|
|
@ -643,7 +643,7 @@ impl FMP4Mux {
|
||||||
};
|
};
|
||||||
|
|
||||||
let end_timestamp = match gop_buffers.peek() {
|
let end_timestamp = match gop_buffers.peek() {
|
||||||
Some(ref buffer) => {
|
Some(buffer) => {
|
||||||
if stream.intra_only {
|
if stream.intra_only {
|
||||||
buffer.pts
|
buffer.pts
|
||||||
} else {
|
} else {
|
||||||
|
@ -702,7 +702,7 @@ impl FMP4Mux {
|
||||||
let mut caps = None;
|
let mut caps = None;
|
||||||
if state.stream_header.is_none() {
|
if state.stream_header.is_none() {
|
||||||
let (_, new_caps) = self
|
let (_, new_caps) = self
|
||||||
.update_header(element, state, &settings, false)?
|
.update_header(element, state, settings, false)?
|
||||||
.unwrap();
|
.unwrap();
|
||||||
caps = Some(new_caps);
|
caps = Some(new_caps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue