[vlc-commits] the ID could be OK but the class mismatching

Steve Lhomme git at videolan.org
Sun Jan 30 13:22:14 CET 2011


vlc/vlc-1.1 | branch: master | Steve Lhomme <slhomme at matroska.org> | Sat Jan 29 14:10:33 2011 +0100| [3101bb7ac8abf56080d943806d666a385c3e9e33] | committer: Rémi Denis-Courmont

the ID could be OK but the class mismatching

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=3101bb7ac8abf56080d943806d666a385c3e9e33
---

 modules/demux/mkv/mkv.hpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mkv/mkv.hpp b/modules/demux/mkv/mkv.hpp
index 1461d4a..8e3ec9b 100644
--- a/modules/demux/mkv/mkv.hpp
+++ b/modules/demux/mkv/mkv.hpp
@@ -119,7 +119,7 @@ extern "C" {
 
 #define MKVD_TIMECODESCALE 1000000
 
-#define MKV_IS_ID( el, C ) ( EbmlId( (*el) ) == C::ClassInfos.GlobalId )
+#define MKV_IS_ID( el, C ) ( el != NULL && typeid( *el ) == typeid( C ) )
 
 
 using namespace LIBMATROSKA_NAMESPACE;



More information about the vlc-commits mailing list