cec: also parse the vendor id if it's sent to the broadcast address
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 26 Oct 2011 19:48:10 +0000 (21:48 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 26 Oct 2011 19:48:10 +0000 (21:48 +0200)
src/lib/CECProcessor.cpp

index 2e53d6b9271742e3cf41140adea44b99f4653743..e32489973bdedcb67bcf96357a324999895bca69 100644 (file)
@@ -646,8 +646,6 @@ bool CCECProcessor::HandleCecCommand(cec_command &command)
       ReportVendorID(command.initiator);
       break;
     case CEC_OPCODE_DEVICE_VENDOR_ID:
-      ParseVendorId(command.initiator, command.parameters);
-      break;
     case CEC_OPCODE_VENDOR_COMMAND_WITH_ID:
       ParseVendorId(command.initiator, command.parameters);
       break;
@@ -720,6 +718,10 @@ bool CCECProcessor::HandleCecCommand(cec_command &command)
         m_controller->AddCommand(command);
       }
       break;
+    case CEC_OPCODE_DEVICE_VENDOR_ID:
+    case CEC_OPCODE_VENDOR_COMMAND_WITH_ID:
+      ParseVendorId(command.initiator, command.parameters);
+     break;
     default:
       m_controller->AddCommand(command);
       bHandled = false;