]> git.sesse.net Git - mlt/blobdiff - src/modules/kino/filehandler.cc
Fix crash at end of some files with audio_index=all.
[mlt] / src / modules / kino / filehandler.cc
index 3c8146d66df1a84c154324ba73584d00d9d14470..244ba24186b8b56dbcda1f33374cde97e3948ebd 100644 (file)
@@ -23,7 +23,7 @@ extern "C" {
 #include <framework/mlt_frame.h>
 }
 
-#include <string>
+#include <cstring>
 #include <iostream>
 #include <sstream>
 #include <iomanip>
@@ -42,6 +42,7 @@ using std::setfill;
 #include <time.h>
 #include <sys/time.h>
 #include <string.h>
+#include <stdlib.h>
 
 // libdv header files
 #ifdef HAVE_LIBDV
@@ -872,7 +873,7 @@ bool QtHandler::Open( const char *s )
 {
        Init();
 
-       fd = quicktime_open( ( char * ) s, 1, 0 );
+       fd = quicktime_open( s, 1, 0 );
        if ( fd == NULL )
        {
                fprintf( stderr, "Error opening: %s\n", s );