From c7cf8c496a68d9edd3685e25c0c902d81ed6b6d8 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 6 Sep 2018 11:35:06 +0200 Subject: [PATCH] demuxers: report failed checks --- src/demuxers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")] -- 2.39.5