mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
hd51/h7/bre2ze4k: check for boxmode 12 for activating PiP
Origin commit data
------------------
Commit: 85ce73e2c3
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2021-03-13 (Sat, 13 Mar 2021)
This commit is contained in:
@@ -242,6 +242,7 @@ bouquetname.removed Gelöschte Kanäle
|
|||||||
bouquetname.uhdtv UHD-Kanäle
|
bouquetname.uhdtv UHD-Kanäle
|
||||||
bouquetname.webradio WebRadio-Kanäle
|
bouquetname.webradio WebRadio-Kanäle
|
||||||
bouquetname.webtv WebTV-Kanäle
|
bouquetname.webtv WebTV-Kanäle
|
||||||
|
boxmode12_not_activated Boxmode 12 nicht aktiviert!
|
||||||
buildinfo.compiled_on Build Host
|
buildinfo.compiled_on Build Host
|
||||||
buildinfo.compiled_with Compiler Version
|
buildinfo.compiled_with Compiler Version
|
||||||
buildinfo.compiler_flags Compiler Flags
|
buildinfo.compiler_flags Compiler Flags
|
||||||
|
@@ -242,6 +242,7 @@ bouquetname.removed Removed channels
|
|||||||
bouquetname.uhdtv UHD channels
|
bouquetname.uhdtv UHD channels
|
||||||
bouquetname.webradio WebRadio channels
|
bouquetname.webradio WebRadio channels
|
||||||
bouquetname.webtv WebTV channels
|
bouquetname.webtv WebTV channels
|
||||||
|
boxmode12_not_activated Boxmode 12 not activated!
|
||||||
buildinfo.compiled_on Build Host
|
buildinfo.compiled_on Build Host
|
||||||
buildinfo.compiled_with Compiler version
|
buildinfo.compiled_with Compiler version
|
||||||
buildinfo.compiler_flags Compiler flags
|
buildinfo.compiler_flags Compiler flags
|
||||||
|
@@ -3355,11 +3355,34 @@ void CNeutrinoApp::RealRun()
|
|||||||
}
|
}
|
||||||
#ifdef ENABLE_PIP
|
#ifdef ENABLE_PIP
|
||||||
else if (msg == (neutrino_msg_t) g_settings.key_pip_close) {
|
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();
|
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
|
||||||
if (pip_channel_id)
|
if (pip_channel_id)
|
||||||
g_Zapit->stopPip();
|
g_Zapit->stopPip();
|
||||||
else
|
else
|
||||||
StartPip(CZapit::getInstance()->GetCurrentChannelID());
|
StartPip(CZapit::getInstance()->GetCurrentChannelID());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if (msg == (neutrino_msg_t) g_settings.key_pip_setup) {
|
else if (msg == (neutrino_msg_t) g_settings.key_pip_setup) {
|
||||||
CPipSetup pipsetup;
|
CPipSetup pipsetup;
|
||||||
|
@@ -269,6 +269,7 @@ typedef enum
|
|||||||
LOCALE_BOUQUETNAME_UHDTV,
|
LOCALE_BOUQUETNAME_UHDTV,
|
||||||
LOCALE_BOUQUETNAME_WEBRADIO,
|
LOCALE_BOUQUETNAME_WEBRADIO,
|
||||||
LOCALE_BOUQUETNAME_WEBTV,
|
LOCALE_BOUQUETNAME_WEBTV,
|
||||||
|
LOCALE_BOXMODE12_NOT_ACTIVATED,
|
||||||
LOCALE_BUILDINFO_COMPILED_ON,
|
LOCALE_BUILDINFO_COMPILED_ON,
|
||||||
LOCALE_BUILDINFO_COMPILED_WITH,
|
LOCALE_BUILDINFO_COMPILED_WITH,
|
||||||
LOCALE_BUILDINFO_COMPILER_FLAGS,
|
LOCALE_BUILDINFO_COMPILER_FLAGS,
|
||||||
|
@@ -269,6 +269,7 @@ const char * locale_real_names[] =
|
|||||||
"bouquetname.uhdtv",
|
"bouquetname.uhdtv",
|
||||||
"bouquetname.webradio",
|
"bouquetname.webradio",
|
||||||
"bouquetname.webtv",
|
"bouquetname.webtv",
|
||||||
|
"boxmode12_not_activated",
|
||||||
"buildinfo.compiled_on",
|
"buildinfo.compiled_on",
|
||||||
"buildinfo.compiled_with",
|
"buildinfo.compiled_with",
|
||||||
"buildinfo.compiler_flags",
|
"buildinfo.compiler_flags",
|
||||||
|
Reference in New Issue
Block a user