Create libcec patch fixing LG tv changing input

This patch fixes the 2012 LG tv's changing input to libreelec whenever the TV is switched on.
see https://github.com/Pulse-Eight/libcec/pull/390 for more info
This commit is contained in:
maart84 2017-12-13 22:52:59 +01:00 committed by GitHub
parent 1315e7ae26
commit e00c84c608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
From c1efce96275218f8b82bbb4ac9a467966a4f5530 Mon Sep 17 00:00:00 2001
From: maart84 <1885039+maart84@users.noreply.github.com>
Date: Wed, 13 Dec 2017 22:46:46 +0100
Subject: [PATCH] Fix LG TV always changing input when turned on
This fixes the issue that LG TV's from 2012 always change input to libreelec.
see https://github.com/Pulse-Eight/libcec/pull/390
---
src/libcec/implementations/SLCommandHandler.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcec/implementations/SLCommandHandler.cpp b/src/libcec/implementations/SLCommandHandler.cpp
index dbdd01ce..83e78bd8 100644
--- a/src/libcec/implementations/SLCommandHandler.cpp
+++ b/src/libcec/implementations/SLCommandHandler.cpp
@@ -129,7 +129,7 @@ int CSLCommandHandler::HandleVendorCommand(const cec_command &command)
else if (command.parameters.size == 1 &&
command.parameters[0] == SL_COMMAND_REQUEST_RECONNECT)
{
- HandleVendorCommandPowerOn(command);
+ HandleVendorCommandPowerOnStatus(command);
return COMMAND_HANDLED;
}
else if (command.parameters.size == 1 &&