]> git.sesse.net Git - vlc/commitdiff
demux/mkv.cpp: gcc < 3 compile fix
authorEric Petit <titer@videolan.org>
Fri, 13 May 2005 08:46:59 +0000 (08:46 +0000)
committerEric Petit <titer@videolan.org>
Fri, 13 May 2005 08:46:59 +0000 (08:46 +0000)
modules/demux/mkv.cpp

index f538b394242becf08e8e480719cc1dfaa6eaff9d..e133797e5bdef998f502ba130ea544c36f68cda7 100644 (file)
@@ -5589,7 +5589,11 @@ bool matroska_script_interpretor_c::Interpret( const binary * p_command, size_t
 
     msg_Dbg( &sys.demuxer, "command : %s", sz_command.c_str() );
 
+#if defined(__GNUC__) && (__GNUC__ < 3)
+    if ( sz_command.compare( CMD_MS_GOTO_AND_PLAY, 0, CMD_MS_GOTO_AND_PLAY.size() ) == 0 )
+#else
     if ( sz_command.compare( 0, CMD_MS_GOTO_AND_PLAY.size(), CMD_MS_GOTO_AND_PLAY ) == 0 )
+#endif
     {
         size_t i,j;