fixed compiler warning in CCECCommandHandler
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 21 Jun 2012 14:34:38 +0000 (16:34 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 21 Jun 2012 14:34:38 +0000 (16:34 +0200)
src/lib/implementations/CECCommandHandler.cpp
src/lib/implementations/CECCommandHandler.h

index f99d4c078556d4ce5973fce0fa46255400db42f3..e06eb2bc8f14aacba99ec482d0895c598605ef5d 100644 (file)
@@ -1141,7 +1141,7 @@ bool CCECCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = f
     {
       LIB_CEC->AddLog(CEC_LOG_DEBUG, "failed to make '%s' the active source. will retry later", m_busDevice->GetLogicalAddressName());
       CLockObject lock(m_mutex);
-      m_iActiveSourcePending = GetTimeMs() + CEC_ACTIVE_SOURCE_SWITCH_RETRY_TIME_MS;
+      m_iActiveSourcePending = GetTimeMs() + (int64_t)CEC_ACTIVE_SOURCE_SWITCH_RETRY_TIME_MS;
       return false;
     }
 
index 70ba3096703e88891d044e5673700df46729379f..b6be4e74d1fc87ce0d248bb05ee0237c190b7c7b 100644 (file)
@@ -226,7 +226,7 @@ namespace CEC
     bool                                  m_bOPTSendDeckStatusUpdateOnActiveSource;
     cec_vendor_id                         m_vendorId;
     CWaitForResponse                     *m_waitForResponse;
-    int                                   m_iActiveSourcePending;
+    int64_t                               m_iActiveSourcePending;
     PLATFORM::CMutex                      m_mutex;
   };
 };