[vlc-devel] [PATCH 1/5] Select wrapper video output if --vout is specified on Mac OS

David Menestrina dmenest-vlc at ofb.net
Tue May 11 00:32:01 CEST 2010


---
 src/video_output/video_output.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 859bdb4..7da99a9 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -464,6 +464,14 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
     if( !p_vout->p->psz_filter_chain || !*p_vout->p->psz_filter_chain )
     {
         psz_parser = NULL;
+#ifdef __APPLE__
+        // On Mac OS, the wrapper video output module has lower precedence
+        // than the opengl module.  So if a vout is requested, we must
+        // select the wrapper video output module.
+        char *voutstr = var_CreateGetNonEmptyString( p_vout, "vout" );
+        if( voutstr )
+            psz_parser = strdup( "vout_wrapper" );
+#endif
     }
     else
     {
-- 
1.7.0.3




More information about the vlc-devel mailing list