mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-15 01:13:36 +02:00
fix gstreamer playback
Origin commit data
------------------
Commit: 3aa3995156
Author: TangoCash <eric@loxat.de>
Date: 2017-10-06 (Fri, 06 Oct 2017)
This commit is contained in:
@@ -100,6 +100,7 @@ bool glcd_play = false;
|
|||||||
|
|
||||||
|
|
||||||
extern cVideo * videoDecoder;
|
extern cVideo * videoDecoder;
|
||||||
|
extern cAudio * audioDecoder;
|
||||||
extern CRemoteControl *g_RemoteControl; /* neutrino.cpp */
|
extern CRemoteControl *g_RemoteControl; /* neutrino.cpp */
|
||||||
|
|
||||||
extern CVolume* g_volume;
|
extern CVolume* g_volume;
|
||||||
@@ -287,6 +288,11 @@ void CMoviePlayerGui::cutNeutrino()
|
|||||||
|
|
||||||
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
|
||||||
@@ -331,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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user