[vlc-devel] commit: caca: On Mac OS X use the ncurses video driver by default. ( Pierre d'Herbemont )

git version control git at videolan.org
Wed Dec 30 04:58:12 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Dec 30 04:50:50 2009 +0100| [37c1d3653065ed3d5b0b266d22cab71f9b6d9139] | committer: Pierre d'Herbemont 

caca: On Mac OS X use the ncurses video driver by default.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37c1d3653065ed3d5b0b266d22cab71f9b6d9139
---

 modules/video_output/caca.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c
index 8c00685..63a0d0f 100644
--- a/modules/video_output/caca.c
+++ b/modules/video_output/caca.c
@@ -142,7 +142,13 @@ static int Open(vlc_object_t *object)
         goto error;
     }
 
-    sys->dp = caca_create_display(sys->cv);
+    const char *driver = NULL;
+#ifdef __APPLE__
+    // Make sure we don't try to open a window.
+    driver = "ncurses";
+#endif
+
+    sys->dp = caca_create_display_with_driver(sys->cv, driver);
     if (!sys->dp) {
         msg_Err(vd, "cannot initialize libcaca");
         goto error;




More information about the vlc-devel mailing list