Commit 4130bf78 authored by luyikei's avatar luyikei

MLTTrack: Use consolidate_blanks instead of our own implementation

parent 19b71a69
......@@ -100,16 +100,7 @@ bool
MLTTrack::remove( int index )
{
auto ret = playlist()->remove( index );
// Remove last blanks.
for ( int i = playlist()->count() - 1; i >= 0; --i )
{
if ( strcmp( playlist()->clip_info( i )->resource, "blank" ) == 0 )
playlist()->remove( i );
else
break;
}
playlist()->consolidate_blanks( 0 );
return !ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment