aboutsummaryrefslogtreecommitdiff
path: root/remuxer/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-22 18:06:53 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-22 18:06:53 +0100
commit34cb7d576b1aec8b53cf1f6398480cf8d3fa24c7 (patch)
treeb752d8587b984d36def9962118b0afc2f2953066 /remuxer/src
parenta8402e7f17e978b839a605d4715ca51b4a76f1f3 (diff)
downloadjellything-34cb7d576b1aec8b53cf1f6398480cf8d3fa24c7.tar
jellything-34cb7d576b1aec8b53cf1f6398480cf8d3fa24c7.tar.bz2
jellything-34cb7d576b1aec8b53cf1f6398480cf8d3fa24c7.tar.zst
front page stuff
Diffstat (limited to 'remuxer/src')
-rw-r--r--remuxer/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/remuxer/src/lib.rs b/remuxer/src/lib.rs
index 12acae3..7ee6ded 100644
--- a/remuxer/src/lib.rs
+++ b/remuxer/src/lib.rs
@@ -11,7 +11,7 @@ use jellymatroska::{
Master, MatroskaTag,
};
use log::{debug, info, trace, warn};
-use std::{collections::VecDeque, fs::File, io::Write, path::PathBuf, sync::Arc};
+use std::{collections::VecDeque, fs::File, io::Write, path::PathBuf};
#[derive(Debug, Clone)]
pub struct RemuxerContext {}
@@ -99,7 +99,7 @@ impl RemuxerContext {
output.write_tag(&MatroskaTag::Tracks(Master::Collected(tracks_header)))?;
struct ReaderD<'a> {
- info: SourceTrack,
+ _info: SourceTrack,
peek: Option<AbsoluteBlock>,
stream: SegmentExtractIter<'a>,
mapped: u64,
@@ -126,7 +126,7 @@ impl RemuxerContext {
mapped: i.mapped,
peek: Some(stream.next()?),
stream,
- info: i.info.clone(),
+ _info: i.info.clone(),
});
}
@@ -220,6 +220,7 @@ impl SegmentExtractIter<'_> {
}
}
// TODO duration
+ drop(duration);
let block = Block::parse(&block.unwrap())?;
if block.track == self.extract {
trace!("block: track={} tso={}", block.track, block.timestamp_off);