+ if( !strncmp( psz_vout_type, "auto", 4 ) )
+ {
+ p_vout->p_sys->i_opengl = CGDisplayUsesOpenGLAcceleration( kCGDirectMainDisplay );
+ }
+ else if( !strncmp( psz_vout_type, "opengl", 6 ) )
+ {
+ p_vout->p_sys->i_opengl = VLC_TRUE;
+ }
+ else
+ {
+ p_vout->p_sys->i_opengl = VLC_FALSE;
+ }
+ free( psz_vout_type );
+