X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.c;h=3f7a01b257fce41a05269608f59a6d68d3c3d94b;hb=1e55d8082c842d4ae2d718eb2675719eeb615c0c;hp=f3233f92087b8f21fecf36ca7905440276a26399;hpb=efd5f25f6fe70f75f9787e9c7f2b53730ecf6048;p=melted diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index f3233f9..3f7a01b 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -205,6 +205,7 @@ mlt_producer mlt_producer_cut( mlt_producer this, int in, int out ) mlt_properties_set_int( properties, "_cut", 1 ); mlt_properties_set_data( properties, "_cut_parent", parent, 0, ( mlt_destructor )mlt_producer_close, NULL ); mlt_properties_set_position( properties, "length", mlt_properties_get_position( parent_props, "length" ) ); + mlt_properties_set_double( properties, "aspect_ratio", mlt_properties_get_double( parent_props, "aspect_ratio" ) ); mlt_producer_set_in_and_out( result, in, out ); // Mini fezzik :-/ @@ -259,7 +260,7 @@ int mlt_producer_seek( mlt_producer this, mlt_position position ) } else if ( use_points && !strcmp( eof, "loop" ) && position >= mlt_producer_get_playtime( this ) ) { - position = position % mlt_producer_get_playtime( this ); + position = (int)position % (int)mlt_producer_get_playtime( this ); } // Set the position