diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-09-16 20:53:04 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-10-16 07:19:32 +0200 |
commit | f5de0aac96621b584bdb5fd1ca5916529d219b0a (patch) | |
tree | 84d02d43b99f6a330eb5295b00af32e10447c678 /configure | |
parent | b94619724327e555a348e2cdcd4c6d2ccde8f8b1 (diff) | |
download | mpv-f5de0aac96621b584bdb5fd1ca5916529d219b0a.tar.bz2 mpv-f5de0aac96621b584bdb5fd1ca5916529d219b0a.tar.xz |
cocoa_common: use IOKit to perform power management
This allows to remove the call to the deprecated `UpdateSystemActivity`. The
additional benefit is power management is disabled only if the video is really
playing. A paused video will not stop the system from idling.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1980,10 +1980,10 @@ int main(void) { } EOF _cocoa=no - cc_check -framework Cocoa -framework OpenGL && _cocoa=yes + cc_check -framework IOKit -framework Cocoa -framework OpenGL && _cocoa=yes fi if test "$_cocoa" = yes ; then - libs_mplayer="$libs_mplayer -framework Cocoa -framework OpenGL" + libs_mplayer="$libs_mplayer -framework IOKit -framework Cocoa -framework OpenGL" def_cocoa='#define CONFIG_COCOA 1' else def_cocoa='#undef CONFIG_COCOA' |