mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
zapit: fix ordering for new azbox drivers
Origin commit data
------------------
Commit: c241bfee34
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-09-22 (Sun, 22 Sep 2013)
This commit is contained in:
@@ -2126,6 +2126,15 @@ bool CZapit::StartPlayBack(CZapitChannel *thisChannel)
|
|||||||
pcrDemux->Start();
|
pcrDemux->Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAVE_AZBOX_HARDWARE
|
||||||
|
/* new (> 20130917) AZbox drivers switch to radio mode if audio is started first */
|
||||||
|
/* start video */
|
||||||
|
if (have_video) {
|
||||||
|
videoDecoder->Start(0, thisChannel->getPcrPid(), thisChannel->getVideoPid());
|
||||||
|
videoDemux->Start();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* select audio output and start audio */
|
/* select audio output and start audio */
|
||||||
if (have_audio) {
|
if (have_audio) {
|
||||||
SetAudioStreamType(thisChannel->getAudioChannel()->audioChannelType);
|
SetAudioStreamType(thisChannel->getAudioChannel()->audioChannelType);
|
||||||
@@ -2133,12 +2142,8 @@ bool CZapit::StartPlayBack(CZapitChannel *thisChannel)
|
|||||||
audioDecoder->Start();
|
audioDecoder->Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ! HAVE_AZBOX_HARDWARE
|
||||||
/* start video */
|
/* start video */
|
||||||
#if HAVE_AZBOX_HARDWARE
|
|
||||||
videoDemux->Start();
|
|
||||||
/* no idea why we need to start *video* to get sound for radio... :-) */
|
|
||||||
videoDecoder->Start();
|
|
||||||
#else
|
|
||||||
if (have_video) {
|
if (have_video) {
|
||||||
videoDecoder->Start(0, thisChannel->getPcrPid(), thisChannel->getVideoPid());
|
videoDecoder->Start(0, thisChannel->getPcrPid(), thisChannel->getVideoPid());
|
||||||
videoDemux->Start();
|
videoDemux->Start();
|
||||||
|
Reference in New Issue
Block a user