]> git.sesse.net Git - vlc/blobdiff - modules/video_output/opengllayer.m
Updated the CVE references for 0.8.6f
[vlc] / modules / video_output / opengllayer.m
index 78d39b02ddc75ccb11480e231ad7edd2b1aa1193..38556d92da9d76a73e24d715e4b4525c76c8e41b 100644 (file)
  *****************************************************************************/
 #include <errno.h>                                                 /* ENOMEM */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_vout.h>
 
@@ -112,7 +116,7 @@ struct vout_sys_t
 
     uint8_t    *pp_buffer[2]; /* one last rendered, one to be rendered */
     int         i_index;
-    vlc_bool_t  b_frame_available;
+    bool  b_frame_available;
     
     CGLContextObj glContext;
 
@@ -204,7 +208,7 @@ static int Init( vout_thread_t *p_vout )
             return VLC_EGENERIC;
         }
     }
-    p_sys->b_frame_available = VLC_FALSE;
+    p_sys->b_frame_available = false;
     p_sys->i_index = 0;
 
     p_vout->p_picture[0].i_planes = 1;
@@ -239,7 +243,7 @@ static void End( vout_thread_t *p_vout )
 {
     vout_sys_t *p_sys = p_vout->p_sys;
 
-    p_vout->p_sys->b_frame_available = VLC_FALSE;
+    p_vout->p_sys->b_frame_available = false;
 
     [p_vout->p_sys->o_cocoa_container performSelectorOnMainThread:@selector(removeVoutLayer:) withObject:p_vout->p_sys->o_layer waitUntilDone:YES];
 
@@ -309,7 +313,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
             p_pic->p->p_pixels = p_sys->pp_buffer[p_sys->i_index];
             CGLUnlockContext(p_sys->glContext);
             
-            p_sys->b_frame_available = VLC_TRUE;
+            p_sys->b_frame_available = true;
         }
     }