Commit d213287b authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: fixed compilation on 10.6

parent 8f844d9a
...@@ -1409,8 +1409,8 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1409,8 +1409,8 @@ static VLCMain *_o_sharedMainInstance = nil;
if (state == PLAYING_S) { if (state == PLAYING_S) {
/* Declare user activity. /* Declare user activity.
This wakes the display if it is off, and postpones display sleep according to the users system preferences This wakes the display if it is off, and postpones display sleep according to the users system preferences
Available from 10.7.3 Available from 10.7.3 */
*/ #ifdef MAC_OS_X_VERSION_10_7
if ([self activeVideoPlayback] && IOPMAssertionDeclareUserActivity) if ([self activeVideoPlayback] && IOPMAssertionDeclareUserActivity)
{ {
CFStringRef reasonForActivity = CFStringCreateWithCString(kCFAllocatorDefault, _("VLC media playback"), kCFStringEncodingUTF8); CFStringRef reasonForActivity = CFStringCreateWithCString(kCFAllocatorDefault, _("VLC media playback"), kCFStringEncodingUTF8);
...@@ -1419,7 +1419,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1419,7 +1419,7 @@ static VLCMain *_o_sharedMainInstance = nil;
&userActivityAssertionID); &userActivityAssertionID);
CFRelease(reasonForActivity); CFRelease(reasonForActivity);
} }
#endif
/* prevent the system from sleeping */ /* prevent the system from sleeping */
if (systemSleepAssertionID > 0) { if (systemSleepAssertionID > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment