[cec] fixed - only send an active source message when receiving OnPlay. this may...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 22 Jan 2013 10:57:15 +0000 (11:57 +0100)
committerS. Davilla <davilla@4pi.com>
Tue, 22 Jan 2013 14:49:39 +0000 (09:49 -0500)
xbmc/peripherals/devices/PeripheralCecAdapter.cpp

index 243a629..e578dc3 100644 (file)
@@ -216,6 +216,7 @@ void CPeripheralCecAdapter::Announce(AnnouncementFlag flag, const char *sender,
       CSingleLock lock(m_critSection);
       bActivateSource = (m_configuration.bActivateSource &&
           !m_bOnPlayReceived &&
+          !m_cecAdapter->IsLibCECActiveSource() &&
           (!m_preventActivateSourceOnPlay.IsValid() || CDateTime::GetCurrentDateTime() - m_preventActivateSourceOnPlay > CDateTimeSpan(0, 0, 0, CEC_SUPPRESS_ACTIVATE_SOURCE_AFTER_ON_STOP)));
       m_bOnPlayReceived = true;
     }