From: Kostya Shishkov Date: Thu, 6 Sep 2018 09:35:06 +0000 (+0200) Subject: demuxers: report failed checks X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c7cf8c496a68d9edd3685e25c0c902d81ed6b6d8;p=nihav.git demuxers: report failed checks --- diff --git a/src/demuxers/mod.rs b/src/demuxers/mod.rs index 46603b2..3ecc983 100644 --- a/src/demuxers/mod.rs +++ b/src/demuxers/mod.rs @@ -201,7 +201,7 @@ pub trait DemuxerCreator { } macro_rules! validate { - ($a:expr) => { if !$a { return Err(DemuxerError::InvalidData); } }; + ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DemuxerError::InvalidData); } }; } #[cfg(feature="demuxer_gdv")]