mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
projects/imx6/patches/libcec: remove project based libcec patches
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
1ba716ff1a
commit
885cb9c2f2
File diff suppressed because it is too large
Load Diff
@ -1,37 +0,0 @@
|
|||||||
From 2a579cc8641a4cf2aba9c03274de68064508ff06 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Matus Kral <matuskral@me.com>
|
|
||||||
Date: Sun, 25 May 2014 07:03:32 +0200
|
|
||||||
Subject: [PATCH] this solves problem with device dissapearing from TV's menu
|
|
||||||
when source is changed to another device.
|
|
||||||
|
|
||||||
(needs fix on adapter side to correctly mark devices with
|
|
||||||
"ishandledbycec").
|
|
||||||
---
|
|
||||||
src/lib/implementations/CECCommandHandler.cpp | 13 ++++++++-----
|
|
||||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp
|
|
||||||
index 29d1ffb..a89ebe6 100644
|
|
||||||
--- a/src/lib/implementations/CECCommandHandler.cpp
|
|
||||||
+++ b/src/lib/implementations/CECCommandHandler.cpp
|
|
||||||
@@ -592,12 +592,15 @@ int CCECCommandHandler::HandleSetStreamPath(const cec_command &command)
|
|
||||||
CCECBusDevice *device = GetDeviceByPhysicalAddress(iStreamAddress);
|
|
||||||
if (device)
|
|
||||||
{
|
|
||||||
- if (device->IsHandledByLibCEC() && !device->IsActiveSource())
|
|
||||||
- device->ActivateSource();
|
|
||||||
- else
|
|
||||||
+ if (device->IsHandledByLibCEC())
|
|
||||||
{
|
|
||||||
- device->MarkAsActiveSource();
|
|
||||||
- device->TransmitActiveSource(true);
|
|
||||||
+ if (!device->IsActiveSource())
|
|
||||||
+ device->ActivateSource();
|
|
||||||
+ else
|
|
||||||
+ {
|
|
||||||
+ device->MarkAsActiveSource();
|
|
||||||
+ device->TransmitActiveSource(true);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
return COMMAND_HANDLED;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user