diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-11-09 14:12:18 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-11-09 14:12:18 +0100 |
| commit | 2efc5f9444402c5ef9db25887f2e95d184af8e05 (patch) | |
| tree | 07f317780bdbe87d633e5340fe87bc604484730d /stream/src/lib.rs | |
| parent | 6032bfd0fa7cfd10d1bc17e44f91a789aa86efad (diff) | |
| download | jellything-2efc5f9444402c5ef9db25887f2e95d184af8e05.tar jellything-2efc5f9444402c5ef9db25887f2e95d184af8e05.tar.bz2 jellything-2efc5f9444402c5ef9db25887f2e95d184af8e05.tar.zst | |
upgrade deps + clippy
Diffstat (limited to 'stream/src/lib.rs')
| -rw-r--r-- | stream/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs index 60c283c..724a593 100644 --- a/stream/src/lib.rs +++ b/stream/src/lib.rs @@ -73,7 +73,7 @@ pub fn stream_head(spec: &StreamSpec) -> StreamHead { Original { .. } => "video/x-matroska", HlsMultiVariant { .. } => "application/vnd.apple.mpegurl", HlsVariant { .. } => "application/vnd.apple.mpegurl", - Info { .. } => "application/jellything-stream-info+json", + Info => "application/jellything-stream-info+json", FragmentIndex { .. } => "application/jellything-frag-index+json", Fragment { container, .. } => container_ct(*container), Remux { container, .. } => container_ct(*container), @@ -120,7 +120,7 @@ fn original_stream( .get(track) .ok_or(anyhow!("unknown track"))?; let mut file = File::open(&iinfo.paths[file_index]).context("opening source")?; - file.seek(SeekFrom::Start(range.start as u64)) + file.seek(SeekFrom::Start(range.start)) .context("seek source")?; Ok(Box::new(file.take(range.end - range.start))) |