repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
send our vendor id when the tv sends it's vendor id
[deb_libcec.git]
/
src
/
lib
/
implementations
/
CECCommandHandler.cpp
diff --git
a/src/lib/implementations/CECCommandHandler.cpp
b/src/lib/implementations/CECCommandHandler.cpp
index ee602f1e6dfa90ecc7242f003fdbba374aeda5a4..29d1ffbcc7444b9725555de8f7f76d7d1b28fa58 100644
(file)
--- a/
src/lib/implementations/CECCommandHandler.cpp
+++ b/
src/lib/implementations/CECCommandHandler.cpp
@@
-257,6
+257,14
@@
int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command & UNUS
int CCECCommandHandler::HandleDeviceVendorId(const cec_command &command)
{
SetVendorId(command);
int CCECCommandHandler::HandleDeviceVendorId(const cec_command &command)
{
SetVendorId(command);
+
+ if (command.initiator == CECDEVICE_TV)
+ {
+ CCECBusDevice* primary = m_processor->GetPrimaryDevice();
+ if (primary)
+ primary->TransmitVendorID(CECDEVICE_BROADCAST, false, false);
+ }
+
return COMMAND_HANDLED;
}
return COMMAND_HANDLED;
}