]>
Commit | Line | Data |
---|---|---|
1 | use nihav_core::muxers::*; | |
2 | ||
3 | #[cfg(debug_assertions)] | |
4 | macro_rules! validate { | |
5 | ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(MuxerError::InvalidData); } }; | |
6 | } | |
7 | #[cfg(not(debug_assertions))] | |
8 | macro_rules! validate { | |
9 | ($a:expr) => { if !$a { return Err(MuxerError::InvalidData); } }; | |
10 | } | |
11 | ||
12 | #[cfg(feature="muxer_real")] | |
13 | mod rmvb; | |
14 | ||
15 | const MUXERS: &[&dyn MuxerCreator] = &[ | |
16 | #[cfg(feature="muxer_real")] | |
17 | &rmvb::RealMediaMuxerCreator {}, | |
18 | #[cfg(feature="muxer_real")] | |
19 | &rmvb::RealAudioMuxerCreator {}, | |
20 | ]; | |
21 | ||
22 | pub fn realmedia_register_all_muxers(rm: &mut RegisteredMuxers) { | |
23 | for muxer in MUXERS.iter() { | |
24 | rm.add_muxer(*muxer); | |
25 | } | |
26 | } |