[vlmc-devel] MLTTrack: Use consolidate_blanks instead of our own implementation

Yikai Lu git at videolan.org
Thu Jul 28 14:39:26 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jul 28 20:56:30 2016 +0900| [4130bf78b71f476d34b36971ec29898ad74911b5] | committer: Yikai Lu

MLTTrack: Use consolidate_blanks instead of our own implementation

> https://code.videolan.org/videolan/vlmc/commit/4130bf78b71f476d34b36971ec29898ad74911b5
---

 src/Backend/MLT/MLTTrack.cpp | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/Backend/MLT/MLTTrack.cpp b/src/Backend/MLT/MLTTrack.cpp
index a7db197..033e0af 100644
--- a/src/Backend/MLT/MLTTrack.cpp
+++ b/src/Backend/MLT/MLTTrack.cpp
@@ -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;
 }
 



More information about the Vlmc-devel mailing list