X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.c;h=0b1eee551dc94be4a77095fe07758fb43c537fcb;hb=d7ae73d25cf5a38a3a8153ae52409fcbef16bb22;hp=7165ae9b36fd89da8661917608c5f22892c8238f;hpb=bd9b3ea690d8dc803419a9b4a427a9c9d4e97889;p=melted diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c index 7165ae9..0b1eee5 100644 --- a/src/framework/mlt_consumer.c +++ b/src/framework/mlt_consumer.c @@ -42,7 +42,7 @@ int mlt_consumer_init( mlt_consumer this, void *child ) mlt_properties properties = mlt_service_properties( &this->parent ); // Get the normalisation preference - char *normalisation = getenv( "MLT_NORMALISATION" ); + char *normalisation = mlt_environment( "MLT_NORMALISATION" ); // Deal with normalisation if ( normalisation == NULL || strcmp( normalisation, "NTSC" ) ) @@ -164,9 +164,10 @@ mlt_frame mlt_consumer_get_frame( mlt_consumer this ) if ( mlt_properties_get( properties, "rescale" ) != NULL ) mlt_properties_set( frame_properties, "rescale.interp", mlt_properties_get( properties, "rescale" ) ); - // TODO: Aspect ratio and other jiggery pokery + // Aspect ratio and other jiggery pokery mlt_properties_set_double( frame_properties, "consumer_aspect_ratio", mlt_properties_get_double( properties, "aspect_ratio" ) ); mlt_properties_set_int( frame_properties, "consumer_progressive", mlt_properties_get_int( properties, "progressive" ) ); + mlt_properties_set_int( frame_properties, "consumer_deinterlace", mlt_properties_get_int( properties, "deinterlace" ) ); }