[vlc-devel] [PATCH 2/9] mmal/codec: Allow longer wait for input buffer

Julian Scheel julian at jusst.de
Thu Oct 19 11:22:59 CEST 2017


Avoid useless flushing by allowing to wait a little longer for buffers
to be available.

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 modules/hw/mmal/codec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index 21b74681e4..f81eed1e60 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -647,7 +647,7 @@ static int decode(decoder_t *dec, block_t *block)
         flags |= MMAL_BUFFER_HEADER_FLAG_CORRUPTED;
 
     while (block && block->i_buffer > 0) {
-        buffer = mmal_queue_timedwait(sys->input_pool->queue, 2);
+        buffer = mmal_queue_timedwait(sys->input_pool->queue, 100);
         if (!buffer) {
             msg_Err(dec, "Failed to retrieve buffer header for input data");
             need_flush = true;
-- 
2.14.2



More information about the vlc-devel mailing list