]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_consumer.c
src/framework/mlt_consumer.c
[mlt] / src / framework / mlt_consumer.c
index 5b48e6d330c4593bf5606c0f934a44dbd1a99555..2d039bdbf9aa70eb7d02a3f68615f79c94c0c398 100644 (file)
@@ -523,6 +523,8 @@ static void *consumer_read_ahead_thread( void *arg )
 
        // See if video is turned off
        int video_off = mlt_properties_get_int( properties, "video_off" );
+       int preview_off = mlt_properties_get_int( properties, "preview_off" );
+       int preview_format = mlt_properties_get_int( properties, "preview_format" );
 
        // Get the audio settings
        mlt_audio_format afmt = mlt_audio_pcm;
@@ -555,6 +557,9 @@ static void *consumer_read_ahead_thread( void *arg )
        int skip_next = 0;
        mlt_service lock_object = NULL;
 
+       if ( preview_off && preview_format != 0 )
+               this->format = preview_format;
+
        // Get the first frame
        frame = mlt_consumer_get_frame( this );