From 7abb2e355d86c592f14d998e47e3594cce0d8a1b Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Sun, 24 Nov 2013 14:28:15 +0100 Subject: [PATCH] Reactivate remote reintialization in videoomx and purge power events in changepowerstate --- remotelinux.cc | 2 ++ videoomx.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/remotelinux.cc b/remotelinux.cc index dd54fa4..c054127 100644 --- a/remotelinux.cc +++ b/remotelinux.cc @@ -895,9 +895,11 @@ void RemoteLinux::changePowerState(bool poweron){ if (poweron) { //Log::getInstance()->log("Remote", Log::DEBUG, "CEC set active source" ); //cec_adap->SetActiveSource(); + haspower=false; } else { //Log::getInstance()->log("Remote", Log::DEBUG, "CEC set inactive view" ); //cec_adap->SetInactiveView(); + haspower=false; //clear stuff } } } diff --git a/videoomx.cc b/videoomx.cc index e91b8ea..fd8a133 100644 --- a/videoomx.cc +++ b/videoomx.cc @@ -660,9 +660,9 @@ int VideoOMX::signalOff() //TODO reinit osd Log::getInstance()->log("Video", Log::NOTICE, "signalOff"); Osd::getInstance()->stopUpdate(); // turn off drawing thread - //Remote::getInstance()->shutdown(); + Remote::getInstance()->shutdown(); vc_tv_power_off(); - //Remote::getInstance()->init(""); + Remote::getInstance()->init(""); signalon=false; return 1; } -- 2.39.5