X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Ftest%2Fplay.cpp;h=e83c5a9c05ae856c0dded99c103869414d4d4ddd;hb=d32f9b6ac490bed3b4712b8868db535054816931;hp=1654e8ed4425c36d703efc2b18b0b70847d0a5e8;hpb=d0cb0f36fcf4d60c86835470822ee7463aa4b15e;p=melted diff --git a/mlt++/test/play.cpp b/mlt++/test/play.cpp index 1654e8e..e83c5a9 100644 --- a/mlt++/test/play.cpp +++ b/mlt++/test/play.cpp @@ -1,22 +1,15 @@ -#include -#include -using namespace std; - #include using namespace Mlt; -#include - -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; }