cec: fix LibCecSharp compilation
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 30 Nov 2011 22:11:08 +0000 (23:11 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 30 Nov 2011 22:11:08 +0000 (23:11 +0100)
src/LibCecSharp/LibCecSharp.cpp
src/lib/devices/CECAudioSystem.cpp

index 6e4895e8cbf9119acfac0a25e9152869c4e8de71..03c0009cea20e7bc51dd1d26449eb1ffac5417dd 100644 (file)
@@ -646,9 +646,9 @@ public:
     return m_libCec->IsActiveDeviceType((cec_device_type)type);
   }
 
-  bool SetHDMIPort(uint8_t port)
+  bool SetHDMIPort(CecLogicalAddress address, uint8_t port)
   {
-    return m_libCec->SetHDMIPort(port);
+    return m_libCec->SetHDMIPort((cec_logical_address)address, port);
   }
 
   uint8_t VolumeUp(bool wait)
index 1028a1f4880dbd3edbecc525f2cebaa6ecdcc134..99b581e3798701a33b15d24a19f965b8796337b6 100644 (file)
@@ -101,7 +101,7 @@ bool CCECAudioSystem::TransmitSetSystemAudioMode(cec_logical_address dest)
 
   cec_command command;
   cec_command::Format(command, m_iLogicalAddress, dest, CEC_OPCODE_SET_SYSTEM_AUDIO_MODE);
-  command.parameters.PushBack(m_systemAudioStatus);
+  command.parameters.PushBack((uint8_t)m_systemAudioStatus);
 
   return m_processor->Transmit(command);
 }