add pictureviewer to info-key in audioplayer

Origin commit data
------------------
Branch: ni/coolstream
Commit: e145f9a5e8
Author: defans <defans@bluepeercrew.us>
Date: 2012-11-06 (Tue, 06 Nov 2012)

Origin message was:
------------------
- add pictureviewer to info-key in audioplayer

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
defans
2012-11-06 23:04:55 +01:00
committed by vanhofen
parent e9d2fd5e1d
commit 50af8bd0c9
4 changed files with 92 additions and 33 deletions

View File

@@ -112,8 +112,12 @@ CPictureViewerGui::~CPictureViewerGui()
}
//------------------------------------------------------------------------
int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & /*actionKey*/)
int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & actionKey)
{
audioplayer = false;
if (actionKey == "audio")
audioplayer = true;
selected = 0;
width = w_max (710, 0);
height = h_max (570, 0);
@@ -159,14 +163,16 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & /*actionKey
// remember last mode
m_LastMode=(CNeutrinoApp::getInstance()->getLastMode() | NeutrinoMessages::norezap);
//g_Zapit->setStandby(true);
g_Zapit->lockPlayBack();
if (!audioplayer) { // !!! why? !!!
//g_Zapit->setStandby(true);
g_Zapit->lockPlayBack();
// blank background screen
videoDecoder->setBlank(true);
// blank background screen
videoDecoder->setBlank(true);
// Stop Sectionsd
g_Sectionsd->setPauseScanning(true);
// Stop Sectionsd
g_Sectionsd->setPauseScanning(true);
}
// Save and Clear background
bool usedBackground = frameBuffer->getuseBackground();
@@ -180,11 +186,13 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & /*actionKey
// free picviewer mem
m_viewer->Cleanup();
//g_Zapit->setStandby(false);
g_Zapit->unlockPlayBack();
if (!audioplayer) { // !!! why? !!!
//g_Zapit->setStandby(false);
g_Zapit->unlockPlayBack();
// Start Sectionsd
g_Sectionsd->setPauseScanning(false);
// Start Sectionsd
g_Sectionsd->setPauseScanning(false);
}
// Restore previous background
if (usedBackground) {
@@ -226,6 +234,9 @@ int CPictureViewerGui::show()
paint();
}
if (audioplayer)
m_audioPlayer->wantNextPlay();
if (m_state!=SLIDESHOW)
timeout=50; // egal
else