mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
Merge branch 'uncool/dvbsi++' commit '7ea3a20a808'
...needs buildfixing... Conflicts: data/Makefile.am src/driver/volume.cpp src/gui/infoviewer.cpp src/gui/miscsettings_menu.cpp src/gui/movieplayer.cpp src/gui/scan.cpp src/gui/widget/buttons.cpp src/gui/widget/menue.cpp src/gui/widget/stringinput.cpp src/neutrino.cpp src/nhttpd/tuxboxapi/coolstream/controlapi.cpp src/system/setting_helpers.cpp src/zapit/src/capmt.cpp
This commit is contained in:
@@ -884,11 +884,11 @@ int EpgPlus::exec (CChannelList * pchannelList, int selectedChannelIndex, CBouqu
|
||||
bool found = true;
|
||||
uint32_t nNext = (bouquetList->getActiveBouquetNumber()+1) % bouquetList->Bouquets.size();
|
||||
//printf("**************************** EpgPlus::exec current bouquet %d new %d\n", bouquetList->getActiveBouquetNumber(), nNext);
|
||||
if(bouquetList->Bouquets[nNext]->channelList->getSize() <= 0) {
|
||||
if(bouquetList->Bouquets[nNext]->channelList->isEmpty() ) {
|
||||
found = false;
|
||||
nNext = nNext < bouquetList->Bouquets.size()-1 ? nNext+1 : 0;
|
||||
for(uint32_t i = nNext; i < bouquetList->Bouquets.size(); i++) {
|
||||
if(bouquetList->Bouquets[i]->channelList->getSize() > 0) {
|
||||
if(!bouquetList->Bouquets[i]->channelList->isEmpty() ) {
|
||||
found = true;
|
||||
nNext = i;
|
||||
break;
|
||||
@@ -910,11 +910,11 @@ int EpgPlus::exec (CChannelList * pchannelList, int selectedChannelIndex, CBouqu
|
||||
if (!bouquetList->Bouquets.empty()) {
|
||||
bool found = true;
|
||||
int nNext = (bouquetList->getActiveBouquetNumber()+bouquetList->Bouquets.size()-1) % bouquetList->Bouquets.size();
|
||||
if(bouquetList->Bouquets[nNext]->channelList->getSize() <= 0) {
|
||||
if(bouquetList->Bouquets[nNext]->channelList->isEmpty()) {
|
||||
found = false;
|
||||
nNext = nNext > 0 ? nNext-1 : bouquetList->Bouquets.size()-1;
|
||||
for(int i = nNext; i > 0; i--) {
|
||||
if(bouquetList->Bouquets[i]->channelList->getSize() > 0) {
|
||||
if(!bouquetList->Bouquets[i]->channelList->isEmpty()) {
|
||||
found = true;
|
||||
nNext = i;
|
||||
break;
|
||||
@@ -1263,7 +1263,7 @@ int CEPGplusHandler::exec (CMenuTarget * parent, const std::string & /*actionKey
|
||||
//channelList = CNeutrinoApp::getInstance()->channelList;
|
||||
int bnum = bouquetList->getActiveBouquetNumber();
|
||||
current_bouquet = bnum;
|
||||
if(!bouquetList->Bouquets.empty() && bouquetList->Bouquets[bnum]->channelList->getSize() > 0)
|
||||
if(!bouquetList->Bouquets.empty() && !bouquetList->Bouquets[bnum]->channelList->isEmpty() )
|
||||
channelList = bouquetList->Bouquets[bnum]->channelList;
|
||||
else
|
||||
channelList = CNeutrinoApp::getInstance()->channelList;
|
||||
|
Reference in New Issue
Block a user