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 iter = GroupBy::new(cfg.buffers, |a: &Buffer, b: &Buffer| a.idx == b.idx);
|
||||
while let Some(run) = iter.next() {
|
||||
for run in GroupBy::new(cfg.buffers, |a: &Buffer, b: &Buffer| a.idx == b.idx) {
|
||||
if run[0].idx != idx {
|
||||
// FIXME: What to do with >4GB offsets?
|
||||
current_data_offset = (current_data_offset as u64
|
||||
|
|
|
@ -643,7 +643,7 @@ impl FMP4Mux {
|
|||
};
|
||||
|
||||
let end_timestamp = match gop_buffers.peek() {
|
||||
Some(ref buffer) => {
|
||||
Some(buffer) => {
|
||||
if stream.intra_only {
|
||||
buffer.pts
|
||||
} else {
|
||||
|
@ -702,7 +702,7 @@ impl FMP4Mux {
|
|||
let mut caps = None;
|
||||
if state.stream_header.is_none() {
|
||||
let (_, new_caps) = self
|
||||
.update_header(element, state, &settings, false)?
|
||||
.update_header(element, state, settings, false)?
|
||||
.unwrap();
|
||||
caps = Some(new_caps);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue