[vlc-commits] mmal/codec: Silence build warnings

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:33 2015 +0200| [2d7881198e1b909dddf55e0becfd09a2e054845e] | committer: Jean-Baptiste Kempf

mmal/codec: Silence build warnings

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=2d7881198e1b909dddf55e0becfd09a2e054845e
---

 modules/hw/mmal/codec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index e11b7b2..87e0c91 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -272,7 +272,7 @@ static void CloseDecoder(decoder_t *dec)
 
     /* Free pictures which are decoded but have not yet been sent
      * out to the core */
-    while (buffer = mmal_queue_get(sys->decoded_pictures)) {
+    while ((buffer = mmal_queue_get(sys->decoded_pictures))) {
         picture_t *pic = (picture_t *)buffer->user_data;
         picture_Release(pic);
 
@@ -421,7 +421,7 @@ static int send_output_buffer(decoder_t *dec)
     picture_sys_t *p_sys;
     picture_t *picture;
     MMAL_STATUS_T status;
-    int buffer_size = 0;
+    unsigned buffer_size = 0;
     int ret = 0;
 
     if (!sys->output->is_enabled)



More information about the vlc-commits mailing list