summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-04-03 08:13:12 +0200
committerUoti Urpala <uau@mplayer2.org>2012-04-26 21:03:10 +0300
commit86790494d38c4f33f74875e1ab7a9dc1bdae1772 (patch)
tree8ce20af25b97382c5d0dea00ce0ff206f725d008 /configure
parent9646208cc671721fce2253a3c5d40b1961810a87 (diff)
downloadmpv-86790494d38c4f33f74875e1ab7a9dc1bdae1772.tar.bz2
mpv-86790494d38c4f33f74875e1ab7a9dc1bdae1772.tar.xz
OSX, input: implement wakeup in response to Cocoa events
Add code to wake up the select() call in input.c when an OSX event is available and a Cocoa OpenGL backend is initialized. Fixes the slow response to input or other events in Cocoa-based VOs during long select() sleeps (e.g., when mplayer2 is paused) introduced by commit 7040968.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 22926751e9..4a6e209d3a 100755
--- a/configure
+++ b/configure
@@ -4205,6 +4205,9 @@ EOF
fi
if test "$_cocoa" = yes ; then
libs_mplayer="$libs_mplayer -framework Cocoa -framework OpenGL"
+ def_cocoa='#define CONFIG_COCOA 1'
+else
+ def_cocoa='#undef CONFIG_COCOA'
fi
echores "$_cocoa"
@@ -6383,6 +6386,7 @@ BL = $_bl
CACA = $_caca
CDDA = $_cdda
CDDB = $_cddb
+COCOA = $_cocoa
COREAUDIO = $_coreaudio
COREVIDEO = $_corevideo
SHAREDBUFFER = $_sharedbuffer
@@ -6785,6 +6789,7 @@ $def_aa
$def_bl
$def_caca
$def_corevideo
+$def_cocoa
$def_sharedbuffer
$def_dga
$def_dga1