[vlc-commits] mmal/codec: Allow longer wait for input buffer

Julian Scheel git at videolan.org
Thu Oct 19 11:38:25 CEST 2017


vlc | branch: master | Julian Scheel <julian at jusst.de> | Thu Oct 19 11:22:59 2017 +0200| [bc7d53020fd476e710f447dbb9aaa6c65cb99099] | committer: Jean-Baptiste Kempf

mmal/codec: Allow longer wait for input buffer

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

Signed-off-by: Julian Scheel <julian at jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc7d53020fd476e710f447dbb9aaa6c65cb99099
---

 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 336dde04f1..39d3835456 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;



More information about the vlc-commits mailing list