diff options
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | libvo/video_out.c | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -3213,8 +3213,12 @@ EOF _vosrc="$_vosrc vo_macosx.m" _vomodules="macosx $_vomodules" _macosx_frameworks="$_macosx_frameworks -framework Cocoa -framework QuartzCore -framework OpenGL" + _def_macosx_corevideo='#define MACOSX_COREVIDEO 1' + _macosx_corevideo=yes else _novomodules="macosx $_novomodules" + _def_macosx_corevideo='#undef MACOSX_COREVIDEO' + _macosx_corevideo=no fi fi echores "$_macosx" @@ -6891,6 +6895,7 @@ MACOSX = $_macosx MACOSX_FINDER_SUPPORT = $_macosx_finder_support MACOSX_BUNDLE = $_macosx_bundle MACOSX_FRAMEWORKS = $_macosx_frameworks +MACOSX_COREVIDEO = $_macosx_corevideo TOOLAME=$_toolame TOOLAME_EXTRAFLAGS=$_toolame_extraflags TOOLAME_LIB=$_toolame_lib @@ -7201,6 +7206,7 @@ $_def_dshow $_def_macosx $_def_macosx_finder_support $_def_macosx_bundle +$_def_macosx_corevideo /* Build our Win32-loader */ $_def_win32_loader diff --git a/libvo/video_out.c b/libvo/video_out.c index 06de9dabed..8f72095460 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -121,7 +121,9 @@ extern vo_functions_t video_out_tdfx_vid; extern vo_functions_t video_out_tga; #endif #ifdef MACOSX +#ifdef MACOSX_COREVIDEO extern vo_functions_t video_out_macosx; +#endif extern vo_functions_t video_out_quartz; #endif #ifdef HAVE_PNM @@ -140,7 +142,9 @@ vo_functions_t* video_out_drivers[] = &video_out_directx, #endif #ifdef MACOSX +#ifdef MACOSX_COREVIDEO &video_out_macosx, +#endif &video_out_quartz, #endif #ifdef HAVE_XMGA |