From 37c1d3653065ed3d5b0b266d22cab71f9b6d9139 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 30 Dec 2009 04:50:50 +0100 Subject: [PATCH] caca: On Mac OS X use the ncurses video driver by default. --- modules/video_output/caca.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c index 8c00685ae2..63a0d0fc94 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; -- 2.39.5