mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
neutrino.cpp: remove firstChannel()
This commit is contained in:
@@ -1144,14 +1144,6 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************************
|
||||
* CNeutrinoApp - firstChannel, get the initial channel *
|
||||
**************************************************************************************/
|
||||
void CNeutrinoApp::firstChannel()
|
||||
{
|
||||
g_Zapit->getLastChannel(firstchannel.channel_id, firstchannel.mode);
|
||||
}
|
||||
|
||||
/**************************************************************************************
|
||||
* CNeutrinoApp - channelsInit, get the Channellist from daemon *
|
||||
**************************************************************************************/
|
||||
@@ -3135,10 +3127,10 @@ void CNeutrinoApp::tvMode( bool rezap )
|
||||
g_RemoteControl->tvMode();
|
||||
SetChannelMode(g_settings.channel_mode);
|
||||
if( rezap ) {
|
||||
firstChannel();
|
||||
t_channel_id last_chid = CZapit::getInstance()->GetLastTVChannel();
|
||||
channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */
|
||||
if(CServiceManager::getInstance()->FindChannel(firstchannel.channel_id))
|
||||
channelList->zapTo_ChannelID( firstchannel.channel_id );
|
||||
if(CServiceManager::getInstance()->FindChannel(last_chid))
|
||||
channelList->zapTo_ChannelID(last_chid);
|
||||
else
|
||||
channelList->zapTo(0);
|
||||
}
|
||||
@@ -3342,10 +3334,10 @@ void CNeutrinoApp::radioMode( bool rezap)
|
||||
g_RemoteControl->radioMode();
|
||||
SetChannelMode(g_settings.channel_mode_radio);
|
||||
if( rezap ) {
|
||||
firstChannel();
|
||||
t_channel_id last_chid = CZapit::getInstance()->GetLastRADIOChannel();
|
||||
channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */
|
||||
if(CServiceManager::getInstance()->FindChannel(firstchannel.channel_id))
|
||||
channelList->zapTo_ChannelID( firstchannel.channel_id );
|
||||
if(CServiceManager::getInstance()->FindChannel(last_chid))
|
||||
channelList->zapTo_ChannelID(last_chid);
|
||||
else
|
||||
channelList->zapTo(0);
|
||||
}
|
||||
|
@@ -116,7 +116,6 @@ private:
|
||||
int lastChannelMode;
|
||||
struct timeval standby_pressed_at;
|
||||
|
||||
CZapitClient::responseGetLastChannel firstchannel;
|
||||
st_rmsg sendmessage;
|
||||
|
||||
int current_muted;
|
||||
@@ -129,7 +128,6 @@ private:
|
||||
CIPChangeNotifier *MyIPChanger;
|
||||
|
||||
void SDT_ReloadChannels();
|
||||
void firstChannel();
|
||||
void setupNetwork( bool force= false );
|
||||
void setupNFS();
|
||||
|
||||
|
Reference in New Issue
Block a user