]> git.sesse.net Git - mlt/commitdiff
sdl_audio and sdl_preview also do not care about field order
authorDan Dennedy <dan@dennedy.org>
Fri, 14 Sep 2012 05:27:57 +0000 (22:27 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 14 Sep 2012 05:27:57 +0000 (22:27 -0700)
Also, have sdl_preview pass top_field_first to its children.

src/modules/sdl/consumer_sdl_audio.c
src/modules/sdl/consumer_sdl_preview.c

index 065811d8b8354e5f4b3a6a239193b7716f466d25..2ae110daa1f4f2a7656b28c9e247279c5785b1b2 100644 (file)
@@ -106,6 +106,7 @@ mlt_consumer consumer_sdl_audio_init( mlt_profile profile, mlt_service_type type
                // Default scaler (for now we'll use nearest)
                mlt_properties_set( self->properties, "rescale", "nearest" );
                mlt_properties_set( self->properties, "deinterlace_method", "onefield" );
+               mlt_properties_set_int( self->properties, "top_field_first", -1 );
 
                // Default buffer for low latency
                mlt_properties_set_int( self->properties, "buffer", 1 );
index 24d9b979b304d359b8f345aaebf13ae1743159fb..637f1bd49b6f3156a584ba91f3111c2001398c47 100644 (file)
@@ -93,6 +93,11 @@ mlt_consumer consumer_sdl_preview_init( mlt_profile profile, mlt_service_type ty
                mlt_properties_set( properties, "rescale", "nearest" );
                mlt_properties_set( properties, "deinterlace_method", "onefield" );
                mlt_properties_set_int( properties, "prefill", 1 );
+
+               // Tell render thread we prefer yuv420p
+               mlt_properties_set( properties, "mlt_image_format", "yuv420p" );
+               mlt_properties_set_int( properties, "top_field_first", -1 );
+
                parent->close = consumer_close;
                parent->start = consumer_start;
                parent->stop = consumer_stop;
@@ -199,9 +204,10 @@ static int consumer_start( mlt_consumer parent )
 
                mlt_properties_pass_list( play, properties,
                        "deinterlace_method,resize,rescale,width,height,aspect_ratio,display_ratio,preview_off,preview_format,window_background"
-                       ",volume,real_time,buffer,prefill,audio_off,frequency,drop_max" );
+                       ",top_field_first,volume,real_time,buffer,prefill,audio_off,frequency,drop_max" );
                mlt_properties_pass_list( still, properties,
-                       "deinterlace_method,resize,rescale,width,height,aspect_ratio,display_ratio,preview_off,preview_format,window_background" );
+                       "deinterlace_method,resize,rescale,width,height,aspect_ratio,display_ratio,preview_off,preview_format,window_background"
+                       ",top_field_first");
 
                mlt_properties_pass( play, properties, "play." );
                mlt_properties_pass( still, properties, "still." );