]> git.sesse.net Git - mlt/commitdiff
Revert "Fix bug preventing deletion of one frame region"
authorDan Dennedy <dan@dennedy.org>
Tue, 28 Jul 2009 04:18:28 +0000 (21:18 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 28 Jul 2009 04:18:28 +0000 (21:18 -0700)
This reverts commit 17611c672d6a81b3f1b4b445a83606b087603ceb.

Signed-off-by: Dan Dennedy <dan@dennedy.org>
src/framework/mlt_playlist.c

index 94c4d418eb293806efe2d263429991cbca699f12..3a03b1bd938b368b068e085911dd8f9ccf74c407 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 );