From 02d30283b22138ad4a300a59c980d584e70c6f28 Mon Sep 17 00:00:00 2001 From: j-b-m Date: Sun, 3 Aug 2008 07:26:07 +0000 Subject: [PATCH] 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 --- src/framework/mlt_playlist.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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. -- 1.7.4.4