]> git.sesse.net Git - mlt/commitdiff
Fix bug preventing deletion of one frame region
authorj-b-m <jb@kdenlive.org>
Sat, 25 Jul 2009 07:28:16 +0000 (09:28 +0200)
committerj-b-m <jb@kdenlive.org>
Sat, 25 Jul 2009 07:28:16 +0000 (09:28 +0200)
modified:   mlt_playlist.c

src/framework/mlt_playlist.c

index 36ba9b7e8cf98a1a6cf982d7ea679165feb8e5a7..8339169bfc5a41193cf02e9d71b3c1faf8afdc37 100644 (file)
@@ -1693,7 +1693,7 @@ int mlt_playlist_remove_region( mlt_playlist this, mlt_position position, int le
                        clip_length -= position - clip_start;
                }
 
-               while( length > 0 )
+               while( length >= 0 )
                {
                        if ( mlt_playlist_clip_length( this, index ) > length )
                                mlt_playlist_split( this, index, length );