// Create an empty geometries object
mlt_geometry geometry = mlt_geometry_init( );
- // Get the in and out position
- mlt_position in = mlt_transition_get_in( this );
- mlt_position out = mlt_transition_get_out( this );
- int length = out - in + 1;
+ // Get the duration
+ mlt_position length = mlt_transition_get_length( this );
double cycle = mlt_properties_get_double( properties, "cycle" );
// Get the new style geometry string
if ( !crop )
{
crop = mlt_geometry_init();
- mlt_position in = mlt_transition_get_in( this );
- mlt_position out = mlt_transition_get_out( this );
- int length = out - in + 1;
+ mlt_position length = mlt_transition_get_length( this );
double cycle = mlt_properties_get_double( properties, "cycle" );
// Allow a geometry repeat cycle
}
else
{
- int length = mlt_transition_get_out( this ) - mlt_transition_get_in( this ) + 1;
+ mlt_position length = mlt_transition_get_length( this );
double cycle = mlt_properties_get_double( properties, "cycle" );
if ( cycle > 1 )
length = cycle;
// Try to fetch it first
mlt_geometry geometry = mlt_properties_get_data( properties, store, NULL );
- // Get the in and out position
- int always_active = mlt_properties_get_int( properties, "always_active" );
- mlt_position in = mlt_transition_get_in( this );
- mlt_position out = !always_active ? mlt_transition_get_out( this ) : -1;
-
// Determine length and obtain cycle
- int length = out - in + 1;
+ mlt_position length = mlt_transition_get_length( this );
double cycle = mlt_properties_get_double( properties, "cycle" );
// Allow a geometry repeat cycle