]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_playlist.c
Feed rework and fixes to westley and composite
[mlt] / src / framework / mlt_playlist.c
index 58b371d7b10ceef4ae3b1ad1d93bdce5e6713b2f..17aa6a1f450db22fb716a14f3f50e73862e2a254 100644 (file)
@@ -1172,7 +1172,7 @@ void mlt_playlist_consolidate_blanks( mlt_playlist this, int keep_length )
                        }
                }
 
-               if ( !keep_length )
+               if ( !keep_length && this->count > 0 )
                {
                        playlist_entry *last = this->list[ this->count - 1 ];
                        if ( mlt_producer_is_blank( last->producer ) )