X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_playlist.c;h=27c44435271f1423ac1adc68c930057d5c86fdb7;hb=cb4fe9e9f9f279dce4ed45467cdc5c6c62970605;hp=0847f393768b5ee58638ebd79ff9eb312345514b;hpb=407f72e8c783f126b60fcfc53f0a790f3aaee636;p=melted 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.