]> git.sesse.net Git - mlt/commitdiff
Merge branch 'master' of git://mltframework.org/mlt
authorj-b-m <jb@kdenlive.org>
Sun, 16 Aug 2009 09:35:01 +0000 (11:35 +0200)
committerj-b-m <jb@kdenlive.org>
Sun, 16 Aug 2009 09:35:01 +0000 (11:35 +0200)
1  2 
src/framework/mlt_playlist.c

index 8339169bfc5a41193cf02e9d71b3c1faf8afdc37,3a03b1bd938b368b068e085911dd8f9ccf74c407..94c4d418eb293806efe2d263429991cbca699f12
@@@ -1689,14 -1688,13 +1688,13 @@@ int mlt_playlist_remove_region( mlt_pla
  
                if ( clip_start < position )
                {
-                       mlt_playlist_split( this, index ++, position - clip_start );
-                       clip_length -= position - clip_start;
+                       mlt_playlist_split( this, index ++, position - clip_start - 1 );
                }
  
 -              while( length > 0 )
 +              while( length >= 0 )
                {
                        if ( mlt_playlist_clip_length( this, index ) > length )
-                               mlt_playlist_split( this, index, length );
+                               mlt_playlist_split( this, index, length - 1 );
                        length -= mlt_playlist_clip_length( this, index );
                        mlt_playlist_remove( this, index );
                }