put the uncoolinit hack directly in CZapit::Start()

Origin commit data
------------------
Branch: ni/coolstream
Commit: 51422b1763
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-11-30 (Sat, 30 Nov 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-11-30 17:28:23 +01:00
parent 0ad0f9ae3b
commit f153dcbd1e
2 changed files with 7 additions and 1 deletions

View File

@@ -157,7 +157,7 @@ endif
if BOXTYPE_COOL
if BOXMODEL_APOLLO
else
bin_PROGRAMS += uncoolinit
noinst_PROGRAMS = uncoolinit
uncoolinit_SOURCES = uncoolinit.cpp
uncoolinit_LDADD = \
@AVFORMAT_LIBS@ \

View File

@@ -2393,8 +2393,14 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg)
pipDecoder = cVideo::GetDecoder(1);
pipDecoder->SetDemux(pipDemux);
#endif
#else
#if HAVE_COOL_HARDWARE
/* work around broken drivers: when starting up with 720p50 image is pink on hd1 */
videoDecoder = new cVideo(VIDEO_STD_1080I50, videoDemux->getChannel(), videoDemux->getBuffer());
videoDecoder->SetVideoSystem(video_mode);
#else
videoDecoder = new cVideo(video_mode, videoDemux->getChannel(), videoDemux->getBuffer());
#endif
videoDecoder->Standby(false);
audioDecoder = new cAudio(audioDemux->getBuffer(), videoDecoder->GetTVEnc(), NULL /*videoDecoder->GetTVEncSD()*/);