mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- neutrino/channellist: avoid double code; part 2
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -925,22 +925,10 @@ int CChannelList::show()
|
||||
}
|
||||
#ifdef ENABLE_PIP
|
||||
else if (!empty && ((msg == CRCInput::RC_play) || (msg == CRCInput::RC_playpause) || (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
|
||||
{
|
||||
if(SameTP()) {
|
||||
if (CZapit::getInstance()->GetPipChannelID() == (*chanlist)[selected]->getChannelID()) {
|
||||
|
Reference in New Issue
Block a user