X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.c;h=f4e5bd591f86333027db308d0e13f1853cf55938;hb=1d46befd8150131541aa98e93573d5d6e54e9c3a;hp=c874243548cf7a529cdd95d40ae63accdcc521d4;hpb=89b7e06e362f01284cd1166a019ae3fa3093a6e4;p=melted diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index c874243..f4e5bd5 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -57,9 +57,9 @@ int mlt_producer_init( mlt_producer this, void *child ) mlt_properties_set_double( properties, "frame", 0 ); mlt_properties_set_double( properties, "fps", 25.0 ); mlt_properties_set_double( properties, "speed", 1.0 ); - mlt_properties_set_position( properties, "in", 0.0 ); - mlt_properties_set_position( properties, "out", 179999 ); - mlt_properties_set_position( properties, "length", 180000 ); + mlt_properties_set_position( properties, "in", 0 ); + mlt_properties_set_position( properties, "out", 1799999 ); + mlt_properties_set_position( properties, "length", 1800000 ); mlt_properties_set_double( properties, "aspect_ratio", 4.0 / 3.0 ); mlt_properties_set( properties, "log_id", "multitrack" ); @@ -86,32 +86,6 @@ mlt_properties mlt_producer_properties( mlt_producer this ) return mlt_service_properties( &this->parent ); } -/** Convert frame position to position. -*/ - -/* -mlt_position mlt_producer_time( mlt_producer this, int64_t frame ) -{ - if ( frame < 0 ) - return -1; - else - return ( mlt_position )frame / mlt_producer_get_fps( this ); -} -*/ - -/** Convert position to frame position. -*/ - -/* -int64_t mlt_producer_frame_position( mlt_producer this, mlt_position position ) -{ - if ( position < 0 ) - return -1; - else - return ( int64_t )( floor( position * mlt_producer_get_fps( this ) + 0.5 ) ); -} -*/ - /** Seek to a specified position. */