cleanup some warnings
[melted] / mlt++ / test / play.cpp
index 1654e8e..e83c5a9 100644 (file)
@@ -1,22 +1,15 @@
 
-#include <iostream>
-#include <string>
-using namespace std;
-
 #include <Mlt.h>
 using namespace Mlt;
 
-#include <time.h>
-
-int main( int argc, char **argv )
+int main( int, char **argv )
 {
        Factory::init( NULL );
-       Producer producer( argv[ 1 ] );
-       Consumer consumer( "sdl" );
+       Profile profile;
+       Producer producer( profile, argv[ 1 ] );
+       Consumer consumer( profile );
        consumer.set( "rescale", "none" );
        consumer.connect( producer );
-       Event *event = consumer.setup_wait_for( "consumer-stopped" );
-       consumer.start( );
-       consumer.wait_for( event, false );
+       consumer.run( );
        return 0;
 }