From b59235cf232be9d06a0eef478e0cd4a93a36cb58 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Thu, 19 Aug 2004 20:33:56 +0000 Subject: [PATCH] Prefil consumer property git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@377 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_consumer.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 -- 1.7.4.4