X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl_preview.c;h=ec383ab2e06c57eacc201770e83fcd520665113b;hb=cab7cd53c3a4d9c4355751088fec61860dcabbce;hp=f1a7c5051da7d26023e3284efedc79620d20b58f;hpb=fd322c689371726ccf09a65ffe73c6467f8abb3c;p=melted diff --git a/src/modules/sdl/consumer_sdl_preview.c b/src/modules/sdl/consumer_sdl_preview.c index f1a7c50..ec383ab 100644 --- a/src/modules/sdl/consumer_sdl_preview.c +++ b/src/modules/sdl/consumer_sdl_preview.c @@ -295,7 +295,7 @@ static void *consumer_thread( void *arg ) } else { - mlt_consumer_purge( this->play ); + //mlt_consumer_purge( this->play ); last_position = -1; } @@ -363,12 +363,16 @@ static void *consumer_thread( void *arg ) // We are definitely not waiting on the first frame any more first = 0; } + else + { + this->running = 0; + } } - mlt_consumer_stop( this->play ); - mlt_consumer_stop( this->still ); + //mlt_consumer_stop( this->play ); + //mlt_consumer_stop( this->still ); - SDL_Quit( ); + //SDL_Quit( ); return NULL; } @@ -384,13 +388,13 @@ static void consumer_close( mlt_consumer parent ) // Stop the consumer mlt_consumer_stop( parent ); - // Now clean up the rest - mlt_consumer_close( parent ); - // Close the child consumers mlt_consumer_close( this->play ); mlt_consumer_close( this->still ); + // Now clean up the rest + mlt_consumer_close( parent ); + // Finally clean up this free( this ); }