basic init implementation
This commit is contained in:
parent
88a7832dad
commit
a27ecba29b
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@ use std::sync::mpsc;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|
||||||
use crate::util;
|
use crate::util;
|
||||||
|
use crate::demux::input::FileReader;
|
||||||
|
|
||||||
pub fn spawn() -> Result<
|
pub fn spawn() -> Result<
|
||||||
(
|
(
|
||||||
|
@ -15,5 +16,10 @@ pub fn spawn() -> Result<
|
||||||
),
|
),
|
||||||
Box<dyn Error>
|
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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue