fix gstreamer playback

This commit is contained in:
TangoCash
2017-10-06 21:59:22 +02:00
committed by Thilo Graf
parent 47d85f6e71
commit c93b2a9b0b

View File

@@ -288,6 +288,11 @@ void CMoviePlayerGui::cutNeutrino()
#endif #endif
g_Zapit->lockPlayBack(); g_Zapit->lockPlayBack();
#ifdef HAVE_ARM_HARDWARE
videoDecoder->closeDevice();
audioDecoder->closeDevice();
#endif
#ifdef HAVE_AZBOX_HARDWARE #ifdef HAVE_AZBOX_HARDWARE
/* we need sectionsd to get idle and zapit to release the demuxes /* we need sectionsd to get idle and zapit to release the demuxes
* and decoders so that the external player can do its work * and decoders so that the external player can do its work
@@ -332,6 +337,11 @@ void CMoviePlayerGui::restoreNeutrino()
if (isUPNP) if (isUPNP)
return; return;
#ifdef HAVE_ARM_HARDWARE
videoDecoder->openDevice();
audioDecoder->openDevice();
#endif
g_Zapit->unlockPlayBack(); g_Zapit->unlockPlayBack();
//CZapit::getInstance()->EnablePlayback(true); //CZapit::getInstance()->EnablePlayback(true);