]> git.sesse.net Git - mlt/commitdiff
framework/mlt_playlist.c: check length before inserting blank, which fixes one frame...
authorj-b-m <j-b-m@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 3 Aug 2008 07:26:07 +0000 (07:26 +0000)
committerj-b-m <j-b-m@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 3 Aug 2008 07:26:07 +0000 (07:26 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1167 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_playlist.c

index 0847f393768b5ee58638ebd79ff9eb312345514b..27c44435271f1423ac1adc68c930057d5c86fdb7 100644 (file)
@@ -593,7 +593,10 @@ int mlt_playlist_append_io( mlt_playlist this, mlt_producer producer, mlt_positi
 int mlt_playlist_blank( mlt_playlist this, mlt_position length )
 {
        // Append to the virtual list
-       return mlt_playlist_virtual_append( this, &this->blank, 0, length );
+       if (length >= 0) 
+               return mlt_playlist_virtual_append( this, &this->blank, 0, length );
+       else 
+               return 1;
 }
 
 /** Insert a producer into the playlist.