mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
try to fix wrong wakup channel after standby recordings. This is a very hacky, but should work. Please don't hesitate to revert my changes if you have a proper solution for this problem.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1407 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 102e156fc3
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-04-17 (Sun, 17 Apr 2011)
Origin message was:
------------------
- try to fix wrong wakup channel after standby recordings. This is a very hacky, but should work. Please don't hesitate to revert my changes if you have a proper solution for this problem.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1407 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -167,6 +167,7 @@ uint32_t shift_timer;
|
||||
uint32_t scrambled_timer;
|
||||
char recDir[255];
|
||||
char timeshiftDir[255];
|
||||
t_channel_id standby_channel_id;
|
||||
|
||||
//char current_volume;
|
||||
extern int list_changed;
|
||||
@@ -3953,6 +3954,8 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
||||
if(g_settings.mode_clock)
|
||||
InfoClock->StopClock();
|
||||
|
||||
//remember tuned channel-id
|
||||
standby_channel_id = live_channel_id;
|
||||
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_ENTER_STANDBY_SCRIPT ".");
|
||||
if (system(NEUTRINO_ENTER_STANDBY_SCRIPT) != 0)
|
||||
@@ -4020,6 +4023,9 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
||||
} else {
|
||||
tvMode( false );
|
||||
}
|
||||
if(!recordingstatus) { //only switch to standby_channel_id when not recording
|
||||
live_channel_id = standby_channel_id;
|
||||
}
|
||||
channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */
|
||||
channelList->zapTo_ChannelID(live_channel_id);
|
||||
if(recordingstatus) was_record = 0;
|
||||
|
Reference in New Issue
Block a user