- fix CST build

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-05-10 23:29:11 +02:00
committed by Thilo Graf
parent 97fa8a2076
commit 783426588c
3 changed files with 16 additions and 0 deletions

View File

@@ -278,8 +278,10 @@ CNeutrinoApp::CNeutrinoApp()
#ifdef ENABLE_PIP
#if !HAVE_CST_HARDWARE
avinput_pip = false;
#endif
#endif
}
/*-------------------------------------------------------------------------------------
@@ -3356,6 +3358,7 @@ void CNeutrinoApp::RealRun()
StartPip(CZapit::getInstance()->GetCurrentChannelID());
}
}
#if !HAVE_CST_HARDWARE
else if ((msg == (neutrino_msg_t) g_settings.key_pip_close_avinput) && ((g_info.hw_caps->has_SCART_input) || (g_info.hw_caps->has_HDMI_input))) {
int boxmode = getBoxMode();
if (boxmode > -1 && boxmode != 12)
@@ -3371,6 +3374,7 @@ void CNeutrinoApp::RealRun()
StopAVInputPiP();
}
}
#endif
else if (msg == (neutrino_msg_t) g_settings.key_pip_setup) {
CPipSetup pipsetup;
pipsetup.exec(NULL, "");
@@ -4762,6 +4766,7 @@ void CNeutrinoApp::AVInputMode(bool bOnOff)
{
//printf( (bOnOff) ? "mode: avinput on\n" : "mode: avinput off\n" );
#if !HAVE_CST_HARDWARE
if (bOnOff) {
// AVInput AN
frameBuffer->useBackground(false);
@@ -4797,6 +4802,9 @@ void CNeutrinoApp::AVInputMode(bool bOnOff)
cGLCD::AVInputMode(false);
#endif
}
#else
(void)bOnOff; // avoid compiler warning
#endif // !HAVE_CST_HARDWARE
}
void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
@@ -5057,6 +5065,7 @@ void CNeutrinoApp::switchTvRadioMode(const int prev_mode)
}
#ifdef ENABLE_PIP
#if !HAVE_CST_HARDWARE
void CNeutrinoApp::StartAVInputPiP() {
if (!pipDemux) {
pipDemux = new cDemux(1);
@@ -5083,6 +5092,7 @@ void CNeutrinoApp::StopAVInputPiP() {
avinput_pip = false;
}
#endif
#endif
/**************************************************************************************
* CNeutrinoApp - exec, menuitem callback (shutdown) *
@@ -5137,6 +5147,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
}
#ifdef ENABLE_PIP
#if !HAVE_CST_HARDWARE
else if (actionKey=="avinput_pip") {
if (CZapit::getInstance()->GetPipChannelID())
CZapit::getInstance()->StopPip();
@@ -5148,6 +5159,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
returnval = menu_return::RETURN_EXIT_ALL;
}
#endif
#endif
else if (actionKey=="savesettings") {