Minor changes after trying to improve media subscriptions.

Got carried away with traits but it's not worth.
This commit is contained in:
Luke Curley 2023-06-08 10:47:15 -07:00
parent f0dafdf784
commit 9c17146746
2 changed files with 3 additions and 4 deletions

View File

@ -87,9 +87,8 @@ impl Source {
// Create an init track // Create an init track
fn create_init_track(raw: Vec<u8>) -> Track { fn create_init_track(raw: Vec<u8>) -> Track {
// TODO support static producers let mut fragments = Producer::new();
let mut fragments = Producer::<Fragment>::new(); let mut segments = Producer::new();
let mut segments = Producer::<Segment>::new();
fragments.push(raw.into()); fragments.push(raw.into());

View File

@ -9,7 +9,7 @@ struct State<T> {
} }
impl<T> State<T> { impl<T> State<T> {
pub fn new() -> Self { fn new() -> Self {
Self { Self {
queue: VecDeque::new(), queue: VecDeque::new(),
drained: 0, drained: 0,