mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
supplement to e9643a6d05
cec option in standby off and on
Origin commit data
------------------
Branch: ni/coolstream
Commit: 372b367b8b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-01-27 (Mon, 27 Jan 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -430,6 +430,10 @@ void CControlAPI::StandbyCGI(CyhookHandler *hh)
|
|||||||
CEC_HDMI_off = true;
|
CEC_HDMI_off = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//dont use CEC with standbyoff --- use: control/standby?off&cec=off
|
||||||
|
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){
|
||||||
|
videoDecoder->SetCECAutoView(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (hh->ParamList["1"] == "on") // standby mode on
|
if (hh->ParamList["1"] == "on") // standby mode on
|
||||||
{
|
{
|
||||||
@@ -439,23 +443,18 @@ void CControlAPI::StandbyCGI(CyhookHandler *hh)
|
|||||||
}
|
}
|
||||||
else if (hh->ParamList["1"] == "off")// standby mode off
|
else if (hh->ParamList["1"] == "off")// standby mode off
|
||||||
{
|
{
|
||||||
//dont use CEC with standbyoff --- use: control/standby?off&cec=off
|
|
||||||
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){
|
|
||||||
videoDecoder->SetCECAutoView(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
NeutrinoAPI->Zapit->setStandby(false);
|
NeutrinoAPI->Zapit->setStandby(false);
|
||||||
if(CNeutrinoApp::getInstance()->getMode() == 4)
|
if(CNeutrinoApp::getInstance()->getMode() == 4)
|
||||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_OFF, CEventServer::INITID_HTTPD);
|
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_OFF, CEventServer::INITID_HTTPD);
|
||||||
hh->SendOk();
|
hh->SendOk();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
hh->SendError();
|
||||||
|
|
||||||
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){//dont use CEC with standbyoff
|
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){//dont use CEC with standbyoff
|
||||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::EVT_HDMI_CEC_ON, CEventServer::INITID_HTTPD);
|
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::EVT_HDMI_CEC_ON, CEventServer::INITID_HTTPD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
hh->SendError();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
if(CNeutrinoApp::getInstance()->getMode() == 4)//mode_standby = 4
|
if(CNeutrinoApp::getInstance()->getMode() == 4)//mode_standby = 4
|
||||||
hh->WriteLn("on");
|
hh->WriteLn("on");
|
||||||
|
Reference in New Issue
Block a user