mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 06:38:28 +02:00
neutrino: try to prevent using chanellist/bouquetlist while channels init in progress
Origin commit data
------------------
Commit: 3da439030b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-01-13 (Tue, 13 Jan 2015)
This commit is contained in:
@@ -563,6 +563,10 @@ int CBouquetList::show(bool bShowChannelList)
|
||||
int new_selected = (chn - 1) % Bouquets.size(); // is % necessary (i.e. can firstselected be > Bouquets.size()) ?
|
||||
updateSelection(new_selected);
|
||||
}
|
||||
} else if (msg == NeutrinoMessages::EVT_SERVICESCHANGED || msg == NeutrinoMessages::EVT_BOUQUETSCHANGED) {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
loop = false;
|
||||
res = CHANLIST_CANCEL_ALL;
|
||||
} else if (msg > CRCInput::RC_MaxRC) {
|
||||
if ( CNeutrinoApp::getInstance()->handleMsg( msg, data ) & messages_return::cancel_all ) {
|
||||
loop = false;
|
||||
|
@@ -902,6 +902,10 @@ int CChannelList::show()
|
||||
|
||||
paintHead();
|
||||
paint();
|
||||
} else if (msg == NeutrinoMessages::EVT_SERVICESCHANGED || msg == NeutrinoMessages::EVT_BOUQUETSCHANGED) {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
loop = false;
|
||||
res = CHANLIST_CANCEL_ALL;
|
||||
} else {
|
||||
if ( CNeutrinoApp::getInstance()->handleMsg( msg, data ) & messages_return::cancel_all ) {
|
||||
loop = false;
|
||||
|
@@ -1132,6 +1132,10 @@ int EpgPlus::exec (CChannelList * pchannelList, int selectedChannelIndex, CBouqu
|
||||
g_RCInput->postMsg (msg, 0);
|
||||
res = menu_return::RETURN_EXIT_ALL;
|
||||
loop = false;
|
||||
} else if (msg == NeutrinoMessages::EVT_SERVICESCHANGED || msg == NeutrinoMessages::EVT_BOUQUETSCHANGED) {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
loop = false;
|
||||
res = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else {
|
||||
if (CNeutrinoApp::getInstance()->handleMsg (msg, data) & messages_return::cancel_all) {
|
||||
|
@@ -970,6 +970,10 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
msg = 0;
|
||||
} else
|
||||
loop = false;
|
||||
} else if (msg == NeutrinoMessages::EVT_SERVICESCHANGED || msg == NeutrinoMessages::EVT_BOUQUETSCHANGED) {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
loop = false;
|
||||
res = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -661,6 +661,10 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c
|
||||
g_RCInput->postMsg (msg, 0);
|
||||
res = menu_return::RETURN_EXIT_ALL;
|
||||
loop = false;
|
||||
} else if (msg == NeutrinoMessages::EVT_SERVICESCHANGED || msg == NeutrinoMessages::EVT_BOUQUETSCHANGED) {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
loop = false;
|
||||
res = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user