]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_playlist.c
Fix bug preventing deletion of one frame region
[mlt] / src / framework / mlt_playlist.c
index 91f9fa81d5d48a57323bcfc280d1ea852f0f6dfc..8339169bfc5a41193cf02e9d71b3c1faf8afdc37 100644 (file)
@@ -283,12 +283,12 @@ static int mlt_playlist_virtual_append( mlt_playlist this, mlt_producer source,
        // Fetch the cuts parent properties
        parent = MLT_PRODUCER_PROPERTIES( mlt_producer_cut_parent( producer ) );
 
-       // Remove fezzik normalisers for fx cuts
+       // Remove loader normalisers for fx cuts
        if ( mlt_properties_get_int( parent, "meta.fx_cut" ) )
        {
                mlt_service service = MLT_PRODUCER_SERVICE( mlt_producer_cut_parent( producer ) );
                mlt_filter filter = mlt_service_filter( service, 0 );
-               while ( filter != NULL && mlt_properties_get_int( MLT_FILTER_PROPERTIES( filter ), "_fezzik" ) )
+               while ( filter != NULL && mlt_properties_get_int( MLT_FILTER_PROPERTIES( filter ), "_loader" ) )
                {
                        mlt_service_detach( service, filter );
                        filter = mlt_service_filter( service, 0 );
@@ -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 );