X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fdemuxers%2Fmod.rs;h=d602cfca5288043d6e1b964a32f9210a9e129951;hb=0a0456a8355d0bd06c8f8612bfd3326868a6b25f;hp=9c05c1859b051a1a947e44815b426d53d93e6ef7;hpb=c83013a1f409bc5f83e343cf1b2293aa736e6c93;p=nihav.git diff --git a/nihav-commonfmt/src/demuxers/mod.rs b/nihav-commonfmt/src/demuxers/mod.rs index 9c05c18..d602cfc 100644 --- a/nihav-commonfmt/src/demuxers/mod.rs +++ b/nihav-commonfmt/src/demuxers/mod.rs @@ -9,12 +9,22 @@ macro_rules! validate { #[cfg(feature="demuxer_avi")] #[allow(clippy::cast_lossless)] mod avi; +#[cfg(feature="demuxer_mov")] +#[allow(clippy::cast_lossless)] +mod mov; +#[cfg(feature="demuxer_wav")] +mod wav; -const DEMUXERS: &[&DemuxerCreator] = &[ +const DEMUXERS: &[&dyn DemuxerCreator] = &[ #[cfg(feature="demuxer_avi")] &avi::AVIDemuxerCreator {}, +#[cfg(feature="demuxer_mov")] + &mov::MOVDemuxerCreator {}, +#[cfg(feature="demuxer_wav")] + &wav::WAVDemuxerCreator {}, ]; +/// Registers all available demuxers provided by this crate. pub fn generic_register_all_demuxers(rd: &mut RegisteredDemuxers) { for demuxer in DEMUXERS.iter() { rd.add_demuxer(*demuxer);