diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-19 00:57:18 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-19 00:57:18 +0100 |
| commit | 696f4e060b932c5987c4796dae560fe95754aaa1 (patch) | |
| tree | 925e7b2d19f0cca51355b8bbf6fe651be815cc11 /stream/src/lib.rs | |
| parent | 1adce5a199952eb6fd3f9ebfc7038f5e479e5271 (diff) | |
| download | jellything-696f4e060b932c5987c4796dae560fe95754aaa1.tar jellything-696f4e060b932c5987c4796dae560fe95754aaa1.tar.bz2 jellything-696f4e060b932c5987c4796dae560fe95754aaa1.tar.zst | |
fix server-side video playback
Diffstat (limited to 'stream/src/lib.rs')
| -rw-r--r-- | stream/src/lib.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs index 424e44b..1407643 100644 --- a/stream/src/lib.rs +++ b/stream/src/lib.rs @@ -25,7 +25,7 @@ use std::{ io::{Read, Seek, SeekFrom}, ops::Range, path::PathBuf, - sync::{Arc, LazyLock, Mutex}, + sync::Arc, }; use stream_info::{stream_info, write_stream_info}; @@ -39,19 +39,11 @@ pub struct Config { #[serde(default)] pub offer_av1: bool, } -pub static CONF_PRELOAD: Mutex<Option<Config>> = Mutex::new(None); -static CONF: LazyLock<Config> = LazyLock::new(|| { - CONF_PRELOAD - .lock() - .unwrap() - .take() - .expect("stream config not preloaded. logic error") -}); - pub struct SMediaInfo { pub title: Option<String>, pub files: BTreeSet<PathBuf>, pub cache: Arc<Cache>, + pub config: Arc<Config>, } pub struct StreamHead { |