[cec] fixed - don't send devices to standby when the screensaver is activated and...
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 28 Dec 2012 13:28:38 +0000 (14:28 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 28 Dec 2012 13:28:38 +0000 (14:28 +0100)
xbmc/peripherals/devices/PeripheralCecAdapter.cpp

index 366bca3..15c0bf2 100644 (file)
@@ -169,7 +169,7 @@ void CPeripheralCecAdapter::Announce(AnnouncementFlag flag, const char *sender,
   else if (flag == GUI && !strcmp(sender, "xbmc") && !strcmp(message, "OnScreensaverActivated") && m_bIsReady)
   {
     // Don't put devices to standby if application is currently playing
-    if ((!g_application.IsPlaying() || g_application.IsPaused()) && m_configuration.bPowerOffScreensaver == 1)
+    if ((!g_application.IsPlaying() && !g_application.IsPaused()) && m_configuration.bPowerOffScreensaver == 1)
     {
       m_screensaverLastActivated = CDateTime::GetCurrentDateTime();
       // only power off when we're the active source