From 9c17146746cf82e15b8262973b894f6ba573fb52 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Thu, 8 Jun 2023 10:47:15 -0700 Subject: [PATCH] Minor changes after trying to improve media subscriptions. Got carried away with traits but it's not worth. --- src/media/source.rs | 5 ++--- src/media/watch.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/media/source.rs b/src/media/source.rs index e0f8e29..6910c06 100644 --- a/src/media/source.rs +++ b/src/media/source.rs @@ -87,9 +87,8 @@ impl Source { // Create an init track fn create_init_track(raw: Vec) -> Track { - // TODO support static producers - let mut fragments = Producer::::new(); - let mut segments = Producer::::new(); + let mut fragments = Producer::new(); + let mut segments = Producer::new(); fragments.push(raw.into()); diff --git a/src/media/watch.rs b/src/media/watch.rs index 6b98f45..b164b7e 100644 --- a/src/media/watch.rs +++ b/src/media/watch.rs @@ -9,7 +9,7 @@ struct State { } impl State { - pub fn new() -> Self { + fn new() -> Self { Self { queue: VecDeque::new(), drained: 0,