channellist::zapToChannel: speed up playback

on channels without EPG on pre-locked bouquets, playback was delayed
until EPG times out (about 10seconds), even if parental control is
globally disabled. Check for parentallock global setting and start video
always if enabled.
This commit is contained in:
Stefan Seyfried
2021-03-13 20:08:14 +01:00
committed by Thilo Graf
parent 78eb1cd564
commit 715ceb38e7

View File

@@ -1262,7 +1262,9 @@ void CChannelList::zapToChannel(CZapitChannel *channel, bool force)
}
selected_chid = channel->getChannelID();
g_RemoteControl->zapTo_ChannelID(selected_chid, channel->getName(), channel->number, (channel->Locked() == g_settings.parentallock_defaultlocked));
bool startvideo = (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_NEVER) ||
(channel->Locked() == g_settings.parentallock_defaultlocked);
g_RemoteControl->zapTo_ChannelID(selected_chid, channel->getName(), channel->number, startvideo);
CNeutrinoApp::getInstance()->adjustToChannelID(channel->getChannelID());
}
if(new_zap_mode != 2 /* not active */) {