aboutsummaryrefslogtreecommitdiff
path: root/stream/src/jhls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/jhls.rs')
-rw-r--r--stream/src/jhls.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/stream/src/jhls.rs b/stream/src/jhls.rs
index d5bb575..e26df1b 100644
--- a/stream/src/jhls.rs
+++ b/stream/src/jhls.rs
@@ -16,7 +16,7 @@ use tokio::io::{AsyncWriteExt, DuplexStream};
pub async fn jhls_index(
node: Node,
local_tracks: &[LocalTrack],
- _spec: StreamSpec,
+ spec: StreamSpec,
mut b: DuplexStream,
perms: &PermissionSet,
) -> Result<()> {
@@ -26,7 +26,12 @@ pub async fn jhls_index(
.to_owned();
let segments = tokio::task::spawn_blocking(move || {
- jellyremuxer::snippet::snippet_index(&CONF.media_path, &node.public, &local_track)
+ jellyremuxer::snippet::snippet_index(
+ &CONF.media_path,
+ &node.public,
+ &local_track,
+ spec.tracks[0],
+ )
})
.await??;