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

macosx: fixed compilation on 10.6

parent 8f844d9a
......@@ -1408,9 +1408,9 @@ static VLCMain *_o_sharedMainInstance = nil;
int state = var_GetInteger(p_input, "state");
if (state == PLAYING_S) {
/* Declare user activity.
This wakes the display if it is off, and postpones display sleep according to the users system preferences
Available from 10.7.3
*/
This wakes the display if it is off, and postpones display sleep according to the users system preferences
Available from 10.7.3 */
#ifdef MAC_OS_X_VERSION_10_7
if ([self activeVideoPlayback] && IOPMAssertionDeclareUserActivity)
{
CFStringRef reasonForActivity = CFStringCreateWithCString(kCFAllocatorDefault, _("VLC media playback"), kCFStringEncodingUTF8);
......@@ -1419,7 +1419,7 @@ static VLCMain *_o_sharedMainInstance = nil;
&userActivityAssertionID);
CFRelease(reasonForActivity);
}
#endif
/* prevent the system from sleeping */
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