vlc | branch: master | Julian Scheel <[email protected]> | 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 <[email protected]>
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> 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) {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to