diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 995265566..76b1f22a5 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -241,6 +241,7 @@ bouquetname.removed Gelöschte Kanäle bouquetname.uhdtv UHD-Kanäle bouquetname.webradio WebRadio-Kanäle bouquetname.webtv WebTV-Kanäle +boxmode12_not_activated Boxmode 12 nicht aktiviert! buildinfo.compiled_on Build Host buildinfo.compiled_with Compiler Version buildinfo.compiler_flags Compiler Flags diff --git a/data/locale/english.locale b/data/locale/english.locale index ccade52eb..72927e663 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -241,6 +241,7 @@ bouquetname.removed Removed channels bouquetname.uhdtv UHD channels bouquetname.webradio WebRadio channels bouquetname.webtv WebTV channels +boxmode12_not_activated Boxmode 12 not activated! buildinfo.compiled_on Build Host buildinfo.compiled_with Compiler version buildinfo.compiler_flags Compiler flags diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 638fe561d..54343a68f 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -3279,11 +3279,34 @@ 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) { + ShowMsg(LOCALE_MESSAGEBOX_ERROR, LOCALE_BOXMODE12_NOT_ACTIVATED, CMsgBox::mbrOk, CMsgBox::mbOk, NEUTRINO_ICON_ERROR); + } else { + t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID(); + if (pip_channel_id) + g_Zapit->stopPip(); + else + StartPip(CZapit::getInstance()->GetCurrentChannelID()); + } +#else t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID(); if (pip_channel_id) g_Zapit->stopPip(); else StartPip(CZapit::getInstance()->GetCurrentChannelID()); +#endif } else if (msg == (neutrino_msg_t) g_settings.key_pip_setup) { CPipSetup pipsetup; diff --git a/src/system/locals.h b/src/system/locals.h index 85b82ea3c..be20fe2c5 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -268,6 +268,7 @@ typedef enum LOCALE_BOUQUETNAME_UHDTV, LOCALE_BOUQUETNAME_WEBRADIO, LOCALE_BOUQUETNAME_WEBTV, + LOCALE_BOXMODE12_NOT_ACTIVATED, LOCALE_BUILDINFO_COMPILED_ON, LOCALE_BUILDINFO_COMPILED_WITH, LOCALE_BUILDINFO_COMPILER_FLAGS, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 5dcc61486..627858cc6 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -268,6 +268,7 @@ const char * locale_real_names[] = "bouquetname.uhdtv", "bouquetname.webradio", "bouquetname.webtv", + "boxmode12_not_activated", "buildinfo.compiled_on", "buildinfo.compiled_with", "buildinfo.compiler_flags",