From 80e545d06c4a0f0841d4b40e3aff479ef8d864f9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 22 Dec 2023 15:16:58 +0100 Subject: rework import system pt. 5: local import and playback working again --- stream/src/hls.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'stream/src/hls.rs') 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, + _local_tracks: Vec, 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, + local_tracks: Vec, 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??; -- cgit v1.2.3-70-g09d2