]> git.sesse.net Git - vlc/blobdiff - modules/video_output/opengllayer.m
macosx: Fix a memleak.
[vlc] / modules / video_output / opengllayer.m
index eb39a5b4dcafc97ae0e1ba51b9ea53da8dd7943a..aed86020f95703c612c0da1ab5d84059afe960f9 100644 (file)
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_vout.h>
 
 #import <QuartzCore/QuartzCore.h>
 #import <Cocoa/Cocoa.h>
 #import <OpenGL/OpenGL.h>
 
-#ifdef CALayer
-
 /* On OS X, use GL_TEXTURE_RECTANGLE_EXT instead of GL_TEXTURE_2D.
    This allows sizes which are not powers of 2 */
 #define VLCGL_TARGET GL_TEXTURE_RECTANGLE_EXT
@@ -94,7 +93,7 @@ vlc_module_begin();
     set_shortname( "OpenGLLayer" );
     set_category( CAT_VIDEO );
     set_subcategory( SUBCAT_VIDEO_VOUT );
-    set_description( _("Core Animation OpenGL Layer (Mac OS X)") );
+    set_description( N_("Core Animation OpenGL Layer (Mac OS X)") );
     set_capability( "video output", 20 );
     add_shortcut( "opengllayer" );
     set_callbacks( CreateVout, DestroyVout );
@@ -517,5 +516,3 @@ static int InitTextures( vout_thread_t *p_vout )
     CGLUnlockContext( glContext );
 }
 @end
-
-#endif