CamMenu: add "no other CI channel" option to usable channels while recording

Origin commit data
------------------
Branch: ni/coolstream
Commit: f790f6d05d
Author: FlatTV <FlatTV@gmx.de>
Date: 2016-10-25 (Tue, 25 Oct 2016)


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

------------------
This commit was generated by Migit
This commit is contained in:
FlatTV
2016-10-25 18:17:29 +02:00
parent 01acc7d9ae
commit 54c9128b89
6 changed files with 12 additions and 5 deletions

View File

@@ -312,6 +312,7 @@ ci.inserted CAM im Slot
ci.mode CI Kanäle während einer Aufnahme
ci.mode_0 alle Kanäle
ci.mode_1 gleicher Transponder
ci.mode_2 keine CI Kanäle
ci.rec_zapto Umschalten bei Aufnahmen mit CAM
ci.removed CAM entfernt -> Slot
ci.reset Reset

View File

@@ -312,6 +312,7 @@ ci.inserted CAM inserted in slot
ci.mode Usable CI channel while recording
ci.mode_0 all channels
ci.mode_1 same transponder
ci.mode_2 no other CI channel
ci.rec_zapto Zap when recording needs CAM
ci.removed CAM removed from slot
ci.reset Reset

View File

@@ -68,7 +68,8 @@ const CMenuOptionChooser::keyval OPTIONS_CA_INIT_OPTIONS[] =
const CMenuOptionChooser::keyval OPTIONS_CI_MODE_OPTIONS[] =
{
{ 0, LOCALE_CI_MODE_0 },
{ 1, LOCALE_CI_MODE_1 }
{ 1, LOCALE_CI_MODE_1 },
{ 2, LOCALE_CI_MODE_2 }
};
#define OPTIONS_CI_MODE_OPTION_COUNT (sizeof(OPTIONS_CI_MODE_OPTIONS)/sizeof(CMenuOptionChooser::keyval))

View File

@@ -2289,10 +2289,12 @@ bool CChannelList::SameTP(CZapitChannel * channel)
if (IS_WEBTV(channel->getChannelID()))
return true;
//NI
if(g_settings.ci_mode == 1) {
if(channel->bUseCI && CRecordManager::getInstance()->getUseCI())
return (CRecordManager::getInstance()->SameTransponder(channel->getChannelID()));
//NI - Usable CI channel while recording
if(g_settings.ci_mode != 0 && channel->bUseCI && CRecordManager::getInstance()->getUseCI()) {
if(g_settings.ci_mode == 1)
return (CRecordManager::getInstance()->SameTransponder(channel->getChannelID())); // SameTransponder
else
return false; // No other CI channel
}
iscurrent = CFEManager::getInstance()->canTune(channel);

View File

@@ -339,6 +339,7 @@ typedef enum
LOCALE_CI_MODE,
LOCALE_CI_MODE_0,
LOCALE_CI_MODE_1,
LOCALE_CI_MODE_2,
LOCALE_CI_REC_ZAPTO,
LOCALE_CI_REMOVED,
LOCALE_CI_RESET,

View File

@@ -339,6 +339,7 @@ const char * locale_real_names[] =
"ci.mode",
"ci.mode_0",
"ci.mode_1",
"ci.mode_2",
"ci.rec_zapto",
"ci.removed",
"ci.reset",