mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
channellist: fix segfault while virtual zapping and bouquets are empty
Origin commit data
------------------
Branch: ni/coolstream
Commit: 89019ac222
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-11 (Mon, 11 Dec 2017)
Origin message was:
------------------
- channellist: fix segfault while virtual zapping and bouquets are empty
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1488,7 +1488,10 @@ void CChannelList::virtual_zap_mode(bool up)
|
||||
g_RCInput->getMsg(&msg, &data, 15*10); // 15 seconds, not user changable
|
||||
|
||||
if ((msg == CRCInput::RC_left) || (msg == CRCInput::RC_right)) {
|
||||
channel = bouquetList->Bouquets[bactive]->channelList->getPrevNextChannel(msg, sl);
|
||||
if (!bouquetList->Bouquets.empty())
|
||||
channel = bouquetList->Bouquets[bactive]->channelList->getPrevNextChannel(msg, sl);
|
||||
else
|
||||
channel = CNeutrinoApp::getInstance()->channelList->getPrevNextChannel(msg, sl);
|
||||
bactive = bouquetList->getActiveBouquetNumber();
|
||||
}
|
||||
else if (msg == CRCInput::RC_up || msg == CRCInput::RC_down) {
|
||||
|
Reference in New Issue
Block a user