mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- channellist: fix segfault while virtual zapping and bouquets are empty
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1471,7 +1471,10 @@ void CChannelList::virtual_zap_mode(bool up)
|
|||||||
g_RCInput->getMsg(&msg, &data, 15*10); // 15 seconds, not user changable
|
g_RCInput->getMsg(&msg, &data, 15*10); // 15 seconds, not user changable
|
||||||
|
|
||||||
if ((msg == CRCInput::RC_left) || (msg == CRCInput::RC_right)) {
|
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();
|
bactive = bouquetList->getActiveBouquetNumber();
|
||||||
}
|
}
|
||||||
else if (msg == CRCInput::RC_up || msg == CRCInput::RC_down) {
|
else if (msg == CRCInput::RC_up || msg == CRCInput::RC_down) {
|
||||||
|
Reference in New Issue
Block a user