cec: add the device type as parameter when sending the physical address. thanks bobo1on1
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 13 Oct 2011 23:38:29 +0000 (01:38 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 13 Oct 2011 23:38:29 +0000 (01:38 +0200)
src/lib/CECProcessor.cpp

index 6166032eb98e2834bd251552f311edb767aea75c..f9872fce8fd0cae5c8fbe883cfd76880b334af46 100644 (file)
@@ -320,6 +320,7 @@ void CCECProcessor::ReportPhysicalAddress(void)
   cec_command::format(command, m_iLogicalAddress, CECDEVICE_BROADCAST, CEC_OPCODE_REPORT_PHYSICAL_ADDRESS);
   command.parameters.push_back((uint8_t) ((m_physicaladdress >> 8) & 0xFF));
   command.parameters.push_back((uint8_t) (m_physicaladdress & 0xFF));
+  command.parameters.push_back((uint8_t) (CEC_DEVICE_TYPE_PLAYBACK_DEVICE));
 
   Transmit(command);
 }