int current_position = mlt_producer_position( producer );
if ( current_position > last_position )
{
- fprintf( stderr, "Current Frame: %10d, percentage: %10d\r",
- current_position, 100 * current_position / total_length );
+ fprintf( stderr, "Current Frame: %10d, percentage: %10d%c",
+ current_position, 100 * current_position / total_length,
+ progress == 2 ? '\n' : '\r' );
last_position = current_position;
}
}
{
is_progress = 1;
}
+ else if ( !strcmp( argv[ i ], "-progress2" ) )
+ {
+ is_progress = 2;
+ }
// Look for the query option
else if ( !strcmp( argv[ i ], "-query" ) )
{