mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -327,7 +327,7 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
|
||||
// tell neutrino we're in audio mode
|
||||
m_LastMode = CNeutrinoApp::getInstance()->getMode();
|
||||
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE , NeutrinoMessages::mode_audio);
|
||||
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE , NeutrinoModes::mode_audio);
|
||||
|
||||
puts("[audioplayer.cpp] executing " AUDIOPLAYER_START_SCRIPT ".");
|
||||
if (my_system(AUDIOPLAYER_START_SCRIPT) != 0)
|
||||
@@ -383,7 +383,7 @@ int CAudioPlayerGui::show()
|
||||
updateTimes();
|
||||
|
||||
// stop if mode was changed in another thread
|
||||
if (CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_audio)
|
||||
if (CNeutrinoApp::getInstance()->getMode() != NeutrinoModes::mode_audio)
|
||||
loop = false;
|
||||
|
||||
if (
|
||||
@@ -865,7 +865,7 @@ int CAudioPlayerGui::show()
|
||||
#endif
|
||||
else if (msg == NeutrinoMessages::CHANGEMODE)
|
||||
{
|
||||
if ((data & NeutrinoMessages::mode_mask) != NeutrinoMessages::mode_audio)
|
||||
if ((data & NeutrinoModes::mode_mask) != NeutrinoModes::mode_audio)
|
||||
{
|
||||
loop = false;
|
||||
m_LastMode=data;
|
||||
|
Reference in New Issue
Block a user