summaryrefslogtreecommitdiffstats
path: root/libvo/cocoa_common.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-09-16 20:53:04 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-10-16 07:19:32 +0200
commitf5de0aac96621b584bdb5fd1ca5916529d219b0a (patch)
tree84d02d43b99f6a330eb5295b00af32e10447c678 /libvo/cocoa_common.h
parentb94619724327e555a348e2cdcd4c6d2ccde8f8b1 (diff)
downloadmpv-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 'libvo/cocoa_common.h')
-rw-r--r--libvo/cocoa_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/cocoa_common.h b/libvo/cocoa_common.h
index a158a501fd..079e497441 100644
--- a/libvo/cocoa_common.h
+++ b/libvo/cocoa_common.h
@@ -41,6 +41,8 @@ void vo_cocoa_swap_buffers(struct vo *vo);
int vo_cocoa_check_events(struct vo *vo);
void vo_cocoa_fullscreen(struct vo *vo);
void vo_cocoa_ontop(struct vo *vo);
+void vo_cocoa_pause(struct vo *vo);
+void vo_cocoa_resume(struct vo *vo);
// returns an int to conform to the gl extensions from other platforms
int vo_cocoa_swap_interval(int enabled);