X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Fproducer_noise.c;h=257f0a2c7db20b05e200df739e58c06b762a73e1;hb=5b7aeb5a2052de087acc75887494091e5189143b;hp=7746c0d855afb8f22e559feeb8fc6b10f907049c;hpb=f00476101550ec7d8e863f6516aa83bc1b524570;p=melted diff --git a/src/modules/core/producer_noise.c b/src/modules/core/producer_noise.c index 7746c0d..257f0a2 100644 --- a/src/modules/core/producer_noise.c +++ b/src/modules/core/producer_noise.c @@ -55,11 +55,6 @@ mlt_producer producer_noise_init( void *arg ) // Initialise the producer if ( this != NULL ) { - int is_pal = mlt_properties_get_int( MLT_PRODUCER_PROPERTIES( this ), "normalised_height" ) == 576; - - // Synthetic - aspect ratio of 1 - mlt_properties_set_double( MLT_PRODUCER_PROPERTIES( this ), "aspect_ratio", is_pal ? 59.0/54.0 : 10.0/11.0 ); - // Callback registration this->get_frame = producer_get_frame; this->close = ( mlt_destructor )producer_close; @@ -151,14 +146,8 @@ static int producer_get_frame( mlt_producer this, mlt_frame_ptr frame, int index // Obtain properties of frame mlt_properties properties = MLT_FRAME_PROPERTIES( *frame ); - // Obtain properties of producer - mlt_properties producer_props = MLT_PRODUCER_PROPERTIES( this ); - - // Determine if we're producing PAL or NTSC - int is_pal = mlt_properties_get_double( producer_props, "fps" ) == 25.0; - - // Aspect ratio is 1? - mlt_properties_set_double( properties, "aspect_ratio", is_pal ? 59.0/54.0 : 10.0/11.0 ); + // Aspect ratio is whatever it needs to be + mlt_properties_set_double( properties, "aspect_ratio", 0 ); // Set producer-specific frame properties mlt_properties_set_int( properties, "progressive", 1 ); @@ -170,7 +159,7 @@ static int producer_get_frame( mlt_producer this, mlt_frame_ptr frame, int index mlt_frame_push_get_image( *frame, producer_get_image ); // Specify the audio - ( *frame )->get_audio = producer_get_audio; + mlt_frame_push_audio( *frame, producer_get_audio ); } // Calculate the next timecode