diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-05-31 15:18:42 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-05-31 15:18:57 +0200 |
commit | dc80f48ea3097c891b159667ea239d3c20c78bc8 (patch) | |
tree | b459af26e88bd927ca591a8a7f56cd02af4544c7 /nihav-core/src | |
parent | a0ddfb3d1ef6509bfd5cc957187f98d01c806bd8 (diff) | |
download | nihav-dc80f48ea3097c891b159667ea239d3c20c78bc8.tar.gz |
make muxers handle options
Diffstat (limited to 'nihav-core/src')
-rw-r--r-- | nihav-core/src/muxers/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nihav-core/src/muxers/mod.rs b/nihav-core/src/muxers/mod.rs index e8a1afb..9f40d54 100644 --- a/nihav-core/src/muxers/mod.rs +++ b/nihav-core/src/muxers/mod.rs @@ -2,6 +2,7 @@ pub use crate::frame::*; pub use crate::io::byteio::*; pub use crate::demuxers::{StreamManager, StreamIter}; +pub use crate::options::*; /// A list specifying general muxing errors. #[derive(Debug,Clone,Copy,PartialEq)] @@ -54,7 +55,7 @@ impl From<ByteIOError> for MuxerError { } /// A trait for muxing operations. -pub trait MuxCore<'a> { +pub trait MuxCore<'a>: NAOptionHandler { /// Prepares everything for packet muxing. fn create(&mut self, strmgr: &StreamManager) -> MuxerResult<()>; /// Queues a packet for muxing. |