X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.c;h=991c698767f9328c41dd7dea13226a60dbcb93e3;hb=0cf7dff156fe3c541eb5d668e317cc73b008c7b0;hp=7dc6c6e8c86feee2aa7064de7e21a798d66adba4;hpb=35aa3217c6ad838d1612875e3efdb0c99e4fd639;p=mlt diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index 7dc6c6e8..991c6987 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -279,6 +279,10 @@ static int producer_get_frame( mlt_service service, mlt_frame_ptr frame, int ind mlt_producer_prepare_next( this ); } + // Copy the fps of the producer onto the frame + mlt_properties properties = mlt_frame_properties( *frame ); + mlt_properties_set_double( properties, "fps", mlt_producer_get_fps( this ) ); + return 0; }