neutrino/channellist: avoid double code; part 2

Origin commit data
------------------
Branch: ni/coolstream
Commit: c8856bccb8
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-03-14 (Sun, 14 Mar 2021)

Origin message was:
------------------
- neutrino/channellist: avoid double code; part 2

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-03-14 10:08:27 +01:00
parent 304a1bb9d4
commit 881d93fc45
2 changed files with 4 additions and 28 deletions

View File

@@ -3355,22 +3355,10 @@ void CNeutrinoApp::RealRun()
}
#ifdef ENABLE_PIP
else if (msg == (neutrino_msg_t) g_settings.key_pip_close) {
#if BOXMODEL_BRE2ZE4K || BOXMODEL_HD51 || BOXMODEL_H7
bool bm12=false;
FILE *f = fopen("/proc/cmdline", "r");
if (f) {
char buf[256] = "";
while(fgets(buf, sizeof(buf), f) != NULL) {
if (strstr(buf, "boxmode=12") != NULL) {
bm12=true;
}
}
fclose(f);
}
if (!bm12)
int boxmode = getBoxMode();
if (boxmode > -1 && boxmode != 12)
ShowMsg(LOCALE_MESSAGEBOX_ERROR, LOCALE_BOXMODE12_NOT_ACTIVATED, CMsgBox::mbrOk, CMsgBox::mbOk, NEUTRINO_ICON_ERROR);
else
#endif
{
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
if (pip_channel_id)