From: lilo_booter Date: Thu, 19 Aug 2004 20:33:56 +0000 (+0000) Subject: Prefil consumer property X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=b59235cf232be9d06a0eef478e0cd4a93a36cb58;p=melted Prefil consumer property git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@377 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c index 652698f..1b67b74 100644 --- a/src/framework/mlt_consumer.c +++ b/src/framework/mlt_consumer.c @@ -439,9 +439,10 @@ mlt_frame mlt_consumer_rt_frame( mlt_consumer this ) if ( this->ahead == 0 ) { int buffer = mlt_properties_get_int( properties, "buffer" ); + int prefill = mlt_properties_get_int( properties, "prefill" ); consumer_read_ahead_start( this ); if ( buffer > 1 ) - size = buffer; + size = prefill > 0 && prefill < buffer ? prefill : buffer; } // Get frame from queue