Minor changes after trying to improve media subscriptions.
Got carried away with traits but it's not worth.
This commit is contained in:
parent
f0dafdf784
commit
9c17146746
|
@ -87,9 +87,8 @@ impl Source {
|
|||
|
||||
// Create an init track
|
||||
fn create_init_track(raw: Vec<u8>) -> Track {
|
||||
// TODO support static producers
|
||||
let mut fragments = Producer::<Fragment>::new();
|
||||
let mut segments = Producer::<Segment>::new();
|
||||
let mut fragments = Producer::new();
|
||||
let mut segments = Producer::new();
|
||||
|
||||
fragments.push(raw.into());
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ struct State<T> {
|
|||
}
|
||||
|
||||
impl<T> State<T> {
|
||||
pub fn new() -> Self {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
queue: VecDeque::new(),
|
||||
drained: 0,
|
||||
|
|
Loading…
Reference in New Issue