default progressive on
[melted] / src / modules / sdl / consumer_sdl.c
index 9d82aac..2e5f70c 100644 (file)
@@ -101,6 +101,9 @@ mlt_consumer consumer_sdl_init( char *arg )
                // Default scaler (for now we'll use nearest)
                mlt_properties_set( this->properties, "rescale", "nearest" );
 
+               // Default progressive true
+               mlt_properties_set_int( this->properties, "progressive", 1 );
+
                // Get aspect ratio
                this->aspect_ratio = mlt_properties_get_double( this->properties, "aspect_ratio" );
                
@@ -500,8 +503,8 @@ static void *consumer_thread( void *arg )
                if ( frame != NULL )
                {
                        // SDL adapts display aspect, but set this so pixel aspect can be normalised
-                       mlt_properties_set_double( mlt_frame_properties( frame ), "consumer_aspect_ratio",
-                               mlt_frame_get_aspect_ratio( frame ) );
+//                     mlt_properties_set_double( mlt_frame_properties( frame ), "consumer_aspect_ratio",
+//                             mlt_frame_get_aspect_ratio( frame ) );
                        
                        init_audio = consumer_play_audio( this, frame, init_audio );
                        consumer_play_video( this, frame );
@@ -515,6 +518,9 @@ static void *consumer_thread( void *arg )
                SDL_FreeYUVOverlay( this->sdl_overlay );
        SDL_Quit( );
 
+       while( -- this->count >= 0 )
+               mlt_frame_close( this->queue[ this->count ] );
+
        this->sdl_screen = NULL;
        this->sdl_overlay = NULL;
        this->audio_avail = 0;