[vlc-commits] macosx: fixed compilation on 10.6
Felix Paul Kühne
git at videolan.org
Tue Jan 22 00:15:40 CET 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jan 22 00:15:30 2013 +0100| [d213287ba41152d0957c2e8a3d9eb264004d07a5] | committer: Felix Paul Kühne
macosx: fixed compilation on 10.6
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d213287ba41152d0957c2e8a3d9eb264004d07a5
---
modules/gui/macosx/intf.m | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 3d9ddeb..b891ea3 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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) {
More information about the vlc-commits
mailing list