demuxers: report failed checks
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 6 Sep 2018 09:35:06 +0000 (11:35 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 6 Sep 2018 09:35:06 +0000 (11:35 +0200)
src/demuxers/mod.rs

index 46603b23433361c7e5aa0a839f9fa72ad0222c12..3ecc983f7a75482a2bf16393a918bc2ee9f0a58a 100644 (file)
@@ -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")]