diff options
Diffstat (limited to 'stream/src/hls.rs')
-rw-r--r-- | stream/src/hls.rs | 8 |
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??; |