mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0f43ce769b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-03-20 (Sun, 20 Mar 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user