aboutsummaryrefslogtreecommitdiff
path: root/stream/src/hls.rs
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2023-12-22 15:24:21 +0100
committertpart <tpart120@proton.me>2023-12-22 15:24:21 +0100
commit0bd6da689abe0193c6537c09509613f8897cc823 (patch)
tree1d0bd532480483d1b6ace838e37dfd9228a51cce /stream/src/hls.rs
parent2d7b5e58e82dc597d4646143d41cf31ef89c0737 (diff)
parent80e545d06c4a0f0841d4b40e3aff479ef8d864f9 (diff)
downloadjellything-0bd6da689abe0193c6537c09509613f8897cc823.tar
jellything-0bd6da689abe0193c6537c09509613f8897cc823.tar.bz2
jellything-0bd6da689abe0193c6537c09509613f8897cc823.tar.zst
Merge branch 'master' of codeberg.org:metamuffin/jellything
Diffstat (limited to 'stream/src/hls.rs')
-rw-r--r--stream/src/hls.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/stream/src/hls.rs b/stream/src/hls.rs
index ea82fed..74f18b4 100644
--- a/stream/src/hls.rs
+++ b/stream/src/hls.rs
@@ -18,7 +18,7 @@ use tokio::{
pub async fn hls_master_stream(
_node: Node,
- _track_sources: Vec<LocalTrack>,
+ _local_tracks: Vec<LocalTrack>,
spec: StreamSpec,
mut b: DuplexStream,
) -> Result<()> {
@@ -45,17 +45,15 @@ pub async fn hls_master_stream(
pub async fn hls_variant_stream(
node: Node,
- track_sources: Vec<LocalTrack>,
+ local_tracks: Vec<LocalTrack>,
mut spec: StreamSpec,
mut b: DuplexStream,
) -> Result<()> {
- let track = *spec.tracks.get(0).ok_or(anyhow!("no track"))?;
let snips = spawn_blocking(move || {
jellyremuxer::snippet::snippet_index(
&CONF.library_path,
&node.public,
- &track_sources,
- track,
+ local_tracks.get(0).ok_or(anyhow!("no track"))?,
)
})
.await??;