mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
zapit/bouquets: count locked bouquets a channels is in, and honor lock in all bouquets
Origin commit data
------------------
Branch: ni/coolstream
Commit: abe03ad749
Author: martii <m4rtii@gmx.de>
Date: 2014-05-25 (Sun, 25 May 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -352,7 +352,7 @@ int CChannelList::doChannelMenu(void)
|
||||
* a channel could be added/removed to/from an unlocked bouquet and so made
|
||||
* accessible. */
|
||||
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED &&
|
||||
chanlist[selected]->bAlwaysLocked != g_settings.parentallock_defaultlocked)
|
||||
!!chanlist[selected]->bAlwaysLocked != g_settings.parentallock_defaultlocked)
|
||||
unlocked = (chanlist[selected]->last_unlocked_time + 3600 > time_monotonic());
|
||||
|
||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||
@@ -1083,7 +1083,7 @@ int CChannelList::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data)
|
||||
chanlist[selected]->last_unlocked_EPGid = g_RemoteControl->current_EPGid;
|
||||
else
|
||||
{
|
||||
/* data >= 0x100: pre locked bouquet -> remember unlock time */
|
||||
/* data >= 0x100: pre-locked bouquet -> remember unlock time */
|
||||
chanlist[selected]->last_unlocked_time = time_monotonic();
|
||||
int bnum = bouquetList->getActiveBouquetNumber();
|
||||
if (bnum >= 0)
|
||||
@@ -1298,7 +1298,7 @@ void CChannelList::zapToChannel(CZapitChannel *channel, bool force)
|
||||
}
|
||||
|
||||
selected_chid = channel->getChannelID();
|
||||
g_RemoteControl->zapTo_ChannelID(selected_chid, channel->getName(), (channel->bAlwaysLocked == g_settings.parentallock_defaultlocked));
|
||||
g_RemoteControl->zapTo_ChannelID(selected_chid, channel->getName(), (!!channel->bAlwaysLocked == g_settings.parentallock_defaultlocked));
|
||||
CNeutrinoApp::getInstance()->channelList->adjustToChannelID(channel->getChannelID());
|
||||
}
|
||||
if(new_zap_mode != 2 /* not active */) {
|
||||
|
Reference in New Issue
Block a user