diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index e31bb44a3..e843696df 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -430,6 +430,10 @@ void CControlAPI::StandbyCGI(CyhookHandler *hh) 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 { @@ -439,22 +443,17 @@ void CControlAPI::StandbyCGI(CyhookHandler *hh) } 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); if(CNeutrinoApp::getInstance()->getMode() == 4) NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_OFF, CEventServer::INITID_HTTPD); hh->SendOk(); - - 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); - } } else hh->SendError(); + + 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); + } } else if(CNeutrinoApp::getInstance()->getMode() == 4)//mode_standby = 4