mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 028ec3cf3c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-20 (Mon, 20 Nov 2017)
Origin message was:
------------------
- neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes
------------------
This commit was generated by Migit
This commit is contained in:
@@ -196,7 +196,7 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
// remember last mode
|
||||
m_LastMode = CNeutrinoApp::getInstance()->getMode();
|
||||
// tell neutrino we're in pic_mode
|
||||
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , NeutrinoMessages::mode_pic );
|
||||
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , NeutrinoModes::mode_pic );
|
||||
|
||||
if (!audioplayer) { // !!! why? !!!
|
||||
CNeutrinoApp::getInstance()->stopPlayBack(true);
|
||||
@@ -235,7 +235,7 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
|
||||
// Restore last mode
|
||||
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , m_LastMode );
|
||||
if (m_LastMode == NeutrinoMessages::mode_ts)
|
||||
if (m_LastMode == NeutrinoModes::mode_ts)
|
||||
videoDecoder->setBlank(false);
|
||||
|
||||
// always exit all
|
||||
@@ -618,7 +618,7 @@ int CPictureViewerGui::show()
|
||||
}
|
||||
else if (msg == NeutrinoMessages::CHANGEMODE)
|
||||
{
|
||||
if ((data & NeutrinoMessages::mode_mask) !=NeutrinoMessages::mode_pic)
|
||||
if ((data & NeutrinoModes::mode_mask) !=NeutrinoModes::mode_pic)
|
||||
{
|
||||
loop = false;
|
||||
m_LastMode=data;
|
||||
|
Reference in New Issue
Block a user