[vlc-devel] [PATCH 3/5] mmal/codec: Use default input buffer count
Julian Scheel
julian at jusst.de
Wed Jun 3 09:54:35 CEST 2015
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>
---
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) {
--
2.4.0
More information about the vlc-devel
mailing list