mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
eventlist: skip if Bouquets is empty, avoid segfault
This commit is contained in:
@@ -265,6 +265,9 @@ void CEventList::readEvents(const t_channel_id channel_id)
|
|||||||
|
|
||||||
void CEventList::getChannelNames(t_channel_id &channel_id, std::string ¤t_channel_name, std::string &prev_channel_name, std::string &next_channel_name, neutrino_msg_t msg)
|
void CEventList::getChannelNames(t_channel_id &channel_id, std::string ¤t_channel_name, std::string &prev_channel_name, std::string &next_channel_name, neutrino_msg_t msg)
|
||||||
{
|
{
|
||||||
|
if(bouquetList->Bouquets.empty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
t_bouquet_id current_bouquet_id = bouquetList->getActiveBouquetNumber();
|
t_bouquet_id current_bouquet_id = bouquetList->getActiveBouquetNumber();
|
||||||
const unsigned int channel_nr = bouquetList->Bouquets[current_bouquet_id]->channelList->getSize();
|
const unsigned int channel_nr = bouquetList->Bouquets[current_bouquet_id]->channelList->getSize();
|
||||||
if(channel_nr < 2){
|
if(channel_nr < 2){
|
||||||
|
Reference in New Issue
Block a user