blob: e6f8a2ced33e2a5a732f8ef7dda406af6c00a6c6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
use nihav_core::demuxers::*;
macro_rules! validate {
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } };
}
#[cfg(feature="demuxer_real")]
mod realmedia;
const RM_DEMUXERS: &[&DemuxerCreator] = &[
#[cfg(feature="demuxer_real")]
&realmedia::RealMediaDemuxerCreator {},
#[cfg(feature="demuxer_real")]
&realmedia::RealAudioDemuxerCreator {},
#[cfg(feature="demuxer_real")]
&realmedia::RealIVRDemuxerCreator {},
];
/// Registers all available demuxers provided by this crate.
pub fn realmedia_register_all_demuxers(rd: &mut RegisteredDemuxers) {
for demuxer in RM_DEMUXERS.iter() {
rd.add_demuxer(*demuxer);
}
}
|