[vlc-commits] macosx: use var_InheritBool to read disable-screensaver

David Fuhrmann git at videolan.org
Sun Feb 28 14:50:04 CET 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Feb 28 14:48:33 2016 +0100| [ae0cd5b6895f8fc6b6ff27f32d9615a3d0f5277e] | committer: David Fuhrmann

macosx: use var_InheritBool to read disable-screensaver

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae0cd5b6895f8fc6b6ff27f32d9615a3d0f5277e
---

 modules/gui/macosx/InputManager.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/InputManager.m b/modules/gui/macosx/InputManager.m
index c6ddbcd..ab95990 100644
--- a/modules/gui/macosx/InputManager.m
+++ b/modules/gui/macosx/InputManager.m
@@ -284,7 +284,7 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
             }
         }
 
-        BOOL shouldDisableScreensaver = var_InheritInteger(p_intf, "disable-screensaver");
+        BOOL shouldDisableScreensaver = var_InheritBool(p_intf, "disable-screensaver");
 
         /* Declare user activity.
          This wakes the display if it is off, and postpones display sleep according to the users system preferences



More information about the vlc-commits mailing list