[vlc-commits] mmal/codec: Use default input buffer count

Julian Scheel git at videolan.org
Fri Jun 5 15:39:17 CEST 2015


vlc | branch: master | Julian Scheel <julian at jusst.de> | Wed Jun  3 09:54:35 2015 +0200| [a9f5941b5f285ea8d7292ecad16db45cd06c47b8] | committer: Jean-Baptiste Kempf

mmal/codec: Use default input buffer count

As we use packetized input we normally don't need more than a handful of input
buffers. Using the default of mmal, which is 20, seems absolutely sufficient.

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=a9f5941b5f285ea8d7292ecad16db45cd06c47b8
---

 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 c10158a..2bdd689 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -168,7 +168,7 @@ static int OpenDecoder(decoder_t *dec)
         goto out;
     }
     sys->input->buffer_size = sys->input->buffer_size_recommended;
-    sys->input->buffer_num = __MAX(sys->input->buffer_num_recommended, 80);
+    sys->input->buffer_num = sys->input->buffer_num_recommended;
 
     status = mmal_port_enable(sys->input, input_port_cb);
     if (status != MMAL_SUCCESS) {



More information about the vlc-commits mailing list