From: j-b-m Date: Sun, 3 Aug 2008 07:26:07 +0000 (+0000) Subject: framework/mlt_playlist.c: check length before inserting blank, which fixes one frame... X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=02d30283b22138ad4a300a59c980d584e70c6f28;p=melted framework/mlt_playlist.c: check length before inserting blank, which fixes one frame blanks that were sometimes inserted where not needed. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1167 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/framework/mlt_playlist.c b/src/framework/mlt_playlist.c index 0847f39..27c4443 100644 --- a/src/framework/mlt_playlist.c +++ b/src/framework/mlt_playlist.c @@ -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.