[vlc-commits] mmal: deinterlace: fix compilation

Steve Lhomme git at videolan.org
Thu Jan 16 10:36:12 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jan 16 10:35:39 2020 +0100| [8e2b1d99477972b9e558d453390c706db9b69056] | committer: Steve Lhomme

mmal: deinterlace: fix compilation

After 1b4c1e9fe2c49e303caee31291ab91edfd3b4795

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

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

diff --git a/modules/hw/mmal/deinterlace.c b/modules/hw/mmal/deinterlace.c
index 78a5296964..8903c026a4 100644
--- a/modules/hw/mmal/deinterlace.c
+++ b/modules/hw/mmal/deinterlace.c
@@ -214,7 +214,7 @@ static int Open(vlc_object_t *obj)
         goto out;
     }
 
-    MMAL_PARAMETER_BOOLEAN_T zero_copy = {
+    zero_copy = (MMAL_PARAMETER_BOOLEAN_T) {
         { MMAL_PARAMETER_ZERO_COPY, sizeof(MMAL_PARAMETER_BOOLEAN_T) },
         1
     };
@@ -397,7 +397,7 @@ static picture_t *deinterlace(filter_t *filter, picture_t *picture)
      * Send output buffers
      */
     while(atomic_load(&sys->started) && i < 2) {
-        if (buffer = mmal_queue_timedwait(sys->filtered_pictures, 2000)) {
+        if ((buffer = mmal_queue_timedwait(sys->filtered_pictures, 2000))) {
             i++;
             if (!out_picture) {
                 out_picture = (picture_t *)buffer->user_data;



More information about the vlc-commits mailing list