neutrino: fix recording from standby

After the parental PIN fixes, zapit did no longer zap on leaving standby
in order to not bypass the parental PIN code. Unfortunately this broke
recording from soft standby if the channel to be recorded was the same
as the live channel before standby, since on wakeup it was not tuned.
Fix this by tuning the channel on zapit:leaveStandby(), but without
starting playback. Playback start is triggered by neutrino including the
PIN check.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1314 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2011-03-20 10:35:37 +00:00
parent dae995437a
commit 0f43ce769b
2 changed files with 16 additions and 11 deletions

View File

@@ -3993,12 +3993,18 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
g_Zapit->setStandby(false);
if(was_record)
g_Zapit->startPlayBack();
else {
channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */
channelList->zapTo_ChannelID(live_channel_id);
}
/* the old code did:
if(was_record) g_Zapit->startPlayBack()
unfortunately this bypasses the parental PIN code check if a record timer
was set on a locked channel, then the box put in standby and after the
recording started, the box was woken up.
The channelList->setSelected(); channelList->zapTo_ChannelID() sequence
does trigger the PIN check
If the channel is the same (as during a recording), then it will only
check PIN and not zap, so we should be fine here
*/
channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */
channelList->zapTo_ChannelID(live_channel_id);
if(recordingstatus) was_record = 0;
videoDecoder->Standby(false);