X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.c;h=5d3963c5e52e42f0413842b5ef5ee6eab54c0043;hb=a07c3da76259d6ba479d800ffecc5617a9ad158f;hp=56d1d3f36fa8d935b03abae7341670264bb91730;hpb=2e434b9242746de211dc260456c13ecf3fa38ddf;p=melted diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index 56d1d3f..5d3963c 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -85,9 +85,6 @@ int mlt_producer_init( mlt_producer this, void *child ) mlt_properties_set( properties, "mlt_type", "mlt_producer" ); mlt_properties_set_position( properties, "_position", 0.0 ); mlt_properties_set_double( properties, "_frame", 0 ); - mlt_properties_set_double( properties, "fps", mlt_profile_fps( NULL ) ); - mlt_properties_set_int( properties, "frame_rate_num", mlt_profile_get()->frame_rate_num ); - mlt_properties_set_int( properties, "frame_rate_den", mlt_profile_get()->frame_rate_den ); mlt_properties_set_double( properties, "aspect_ratio", mlt_profile_sar( NULL ) ); mlt_properties_set_double( properties, "_speed", 1.0 ); mlt_properties_set_position( properties, "in", 0 ); @@ -292,7 +289,7 @@ double mlt_producer_get_speed( mlt_producer this ) double mlt_producer_get_fps( mlt_producer this ) { - return mlt_properties_get_double( MLT_PRODUCER_PROPERTIES( this ), "fps" ); + return mlt_profile_fps( NULL ); } /** Set the in and out points. @@ -440,7 +437,6 @@ static int producer_get_frame( mlt_service service, mlt_frame_ptr frame, int ind // Copy the fps and speed of the producer onto the frame properties = MLT_FRAME_PROPERTIES( *frame ); mlt_properties_set_double( properties, "_speed", speed ); - mlt_properties_set_double( properties, "fps", mlt_producer_get_fps( this ) ); mlt_properties_set_int( properties, "test_audio", mlt_frame_is_test_audio( *frame ) ); mlt_properties_set_int( properties, "test_image", mlt_frame_is_test_card( *frame ) ); if ( mlt_properties_get_data( properties, "_producer", NULL ) == NULL )