aboutsummaryrefslogtreecommitdiff
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/src/jhls.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/src/jhls.rs b/stream/src/jhls.rs
index 79fc5fe..b222e39 100644
--- a/stream/src/jhls.rs
+++ b/stream/src/jhls.rs
@@ -29,7 +29,7 @@ pub async fn jhls_index(
.ok_or(anyhow!("track missing"))?
.to_owned();
- let segments = tokio::task::spawn_blocking(move || {
+ let fragments = tokio::task::spawn_blocking(move || {
jellyremuxer::fragment::fragment_index(&CONF.media_path, &node, &local_track, spec.track[0])
})
.await??;
@@ -40,7 +40,7 @@ pub async fn jhls_index(
} else {
vec![]
},
- segments,
+ fragments,
})?;
tokio::spawn(async move { b.write_all(out.as_bytes()).await });
Ok(())