mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
fix mode in SetChannelMode()
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8d3f2ce860
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-03 (Fri, 03 Nov 2017)
Origin message was:
------------------
- fix mode in SetChannelMode()
Signed-off-by: Thilo Graf <dbt@novatux.de>
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1794,10 +1794,12 @@ void CNeutrinoApp::channelsInit(bool bOnly)
|
|||||||
|
|
||||||
void CNeutrinoApp::SetChannelMode(int newmode)
|
void CNeutrinoApp::SetChannelMode(int newmode)
|
||||||
{
|
{
|
||||||
printf("CNeutrinoApp::SetChannelMode %d [%s]\n", newmode, mode == mode_radio ? "radio" : "tv");
|
bool isRadioMode = (mode == mode_radio || mode == mode_webradio);
|
||||||
|
|
||||||
|
printf("CNeutrinoApp::SetChannelMode %d [%s]\n", newmode, isRadioMode ? "radio" : "tv");
|
||||||
int *sortmode;
|
int *sortmode;
|
||||||
|
|
||||||
if(mode == mode_radio) {
|
if (isRadioMode) {
|
||||||
channelList = RADIOchannelList;
|
channelList = RADIOchannelList;
|
||||||
g_settings.channel_mode_radio = newmode;
|
g_settings.channel_mode_radio = newmode;
|
||||||
sortmode = radiosort;
|
sortmode = radiosort;
|
||||||
@@ -1809,25 +1811,25 @@ void CNeutrinoApp::SetChannelMode(int newmode)
|
|||||||
|
|
||||||
switch(newmode) {
|
switch(newmode) {
|
||||||
case LIST_MODE_FAV:
|
case LIST_MODE_FAV:
|
||||||
if(mode == mode_radio)
|
if (isRadioMode)
|
||||||
bouquetList = RADIOfavList;
|
bouquetList = RADIOfavList;
|
||||||
else
|
else
|
||||||
bouquetList = TVfavList;
|
bouquetList = TVfavList;
|
||||||
break;
|
break;
|
||||||
case LIST_MODE_SAT:
|
case LIST_MODE_SAT:
|
||||||
if(mode == mode_radio)
|
if (isRadioMode)
|
||||||
bouquetList = RADIOsatList;
|
bouquetList = RADIOsatList;
|
||||||
else
|
else
|
||||||
bouquetList = TVsatList;
|
bouquetList = TVsatList;
|
||||||
break;
|
break;
|
||||||
case LIST_MODE_WEBTV:
|
case LIST_MODE_WEBTV:
|
||||||
if(mode == mode_radio)
|
if (isRadioMode)
|
||||||
bouquetList = RADIOwebList;
|
bouquetList = RADIOwebList;
|
||||||
else
|
else
|
||||||
bouquetList = TVwebList;
|
bouquetList = TVwebList;
|
||||||
break;
|
break;
|
||||||
case LIST_MODE_ALL:
|
case LIST_MODE_ALL:
|
||||||
if(mode == mode_radio)
|
if (isRadioMode)
|
||||||
bouquetList = RADIOallList;
|
bouquetList = RADIOallList;
|
||||||
else
|
else
|
||||||
bouquetList = TVallList;
|
bouquetList = TVallList;
|
||||||
@@ -1836,7 +1838,7 @@ void CNeutrinoApp::SetChannelMode(int newmode)
|
|||||||
newmode = LIST_MODE_PROV;
|
newmode = LIST_MODE_PROV;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case LIST_MODE_PROV:
|
case LIST_MODE_PROV:
|
||||||
if(mode == mode_radio)
|
if (isRadioMode)
|
||||||
bouquetList = RADIObouquetList;
|
bouquetList = RADIObouquetList;
|
||||||
else
|
else
|
||||||
bouquetList = TVbouquetList;
|
bouquetList = TVbouquetList;
|
||||||
|
Reference in New Issue
Block a user