]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_playlist.c
Merge branch 'master' of git://mltframework.org/mlt into kdenlivetitle
[mlt] / src / framework / mlt_playlist.c
index 3a03b1bd938b368b068e085911dd8f9ccf74c407..94c4d418eb293806efe2d263429991cbca699f12 100644 (file)
@@ -1691,7 +1691,7 @@ int mlt_playlist_remove_region( mlt_playlist this, mlt_position position, int le
                        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 - 1 );