From: Lars Op den Kamp Date: Wed, 30 Nov 2011 22:11:08 +0000 (+0100) Subject: cec: fix LibCecSharp compilation X-Git-Tag: upstream/2.2.0~1^2~44^2~71 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bdccb7113b9557a922657c13cfa5a8b0828dbe7a;p=deb_libcec.git cec: fix LibCecSharp compilation --- diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index 6e4895e..03c0009 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -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) diff --git a/src/lib/devices/CECAudioSystem.cpp b/src/lib/devices/CECAudioSystem.cpp index 1028a1f..99b581e 100644 --- a/src/lib/devices/CECAudioSystem.cpp +++ b/src/lib/devices/CECAudioSystem.cpp @@ -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); }