movieplayer: put zapit to sleep on azbox

the external player needs the demuxers to be idle(?), so put
zapit an sectionsd to sleep on movieplayer start
This commit is contained in:
Stefan Seyfried
2012-11-16 23:44:43 +01:00
parent 49a19112af
commit 08b50288f2

View File

@@ -158,6 +158,14 @@ void CMoviePlayerGui::cutNeutrino()
g_Zapit->lockPlayBack();
g_Sectionsd->setPauseScanning(true);
#ifdef HAVE_AZBOX_HARDWARE
/* we need sectionsd to get idle and zapit to release the demuxes
* and decoders so that the external player can do its work
* TODO: what about timeshift? */
g_Sectionsd->setServiceChanged(0, false);
g_Zapit->setStandby(true);
#endif
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE, NeutrinoMessages::mode_ts);
m_LastMode = (CNeutrinoApp::getInstance()->getLastMode() | NeutrinoMessages::norezap);
}
@@ -168,6 +176,9 @@ void CMoviePlayerGui::restoreNeutrino()
return;
playing = false;
#ifdef HAVE_AZBOX_HARDWARE
g_Zapit->setStandby(false);
#endif
g_Zapit->unlockPlayBack();
g_Sectionsd->setPauseScanning(false);