basic init implementation

This commit is contained in:
Muaz Ahmad 2023-10-06 12:43:53 +05:00
parent 88a7832dad
commit a27ecba29b

View file

@ -5,6 +5,7 @@ use std::sync::mpsc;
use std::error::Error;
use crate::util;
use crate::demux::input::FileReader;
pub fn spawn() -> Result<
(
@ -15,5 +16,10 @@ pub fn spawn() -> Result<
),
Box<dyn Error>
> {
todo!();
let mut reader = input::new_reader()?;
let metadata = reader.init()?;
let (_v_in, v_out) = mpsc::channel();
let (_a_in, a_out) = mpsc::channel();
let (_err_in, err_out) = mpsc::channel();
return Ok((v_out, a_out, metadata, err_out));
}