diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-14 18:42:16 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-14 18:42:16 +0200 |
commit | 3b147cb1dfcbd5c7218e0accd5784d992d5ae21c (patch) | |
tree | 028e5ba21bd9c7da583b2ead0001c1481ccbae86 /stream/src/stream_info.rs | |
parent | 42e08750a5a9a112d458a5db1d6b169278e953c5 (diff) | |
download | jellything-3b147cb1dfcbd5c7218e0accd5784d992d5ae21c.tar jellything-3b147cb1dfcbd5c7218e0accd5784d992d5ae21c.tar.bz2 jellything-3b147cb1dfcbd5c7218e0accd5784d992d5ae21c.tar.zst |
things
Diffstat (limited to 'stream/src/stream_info.rs')
-rw-r--r-- | stream/src/stream_info.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/src/stream_info.rs b/stream/src/stream_info.rs index 9d3d741..a8b6989 100644 --- a/stream/src/stream_info.rs +++ b/stream/src/stream_info.rs @@ -23,7 +23,7 @@ async fn async_matroska_metadata(path: PathBuf) -> Result<Arc<MatroskaMetadata>> pub(crate) struct InternalStreamInfo { pub paths: Vec<PathBuf>, - pub metadata: Vec<Arc<MatroskaMetadata>>, + pub _metadata: Vec<Arc<MatroskaMetadata>>, pub track_to_file: Vec<(usize, u64)>, } @@ -67,7 +67,7 @@ pub(crate) async fn stream_info(info: Arc<SMediaInfo>) -> Result<(InternalStream }; Ok(( InternalStreamInfo { - metadata, + _metadata: metadata, paths, track_to_file, }, @@ -83,7 +83,7 @@ fn stream_formats(t: &TrackEntry) -> Vec<StreamFormatInfo> { formats.push(StreamFormatInfo { codec: t.codec_id.to_string(), remux: true, - bitrate: 2_000_000., // TODO + bitrate: 10_000_000., // TODO containers: containers_by_codec(&t.codec_id), bit_depth: t.audio.as_ref().and_then(|a| a.bit_depth.map(|e| e as u8)), samplerate: t.audio.as_ref().map(|a| a.sampling_frequency), |