fix HD60/HD61

This commit is contained in:
TangoCash
2020-10-03 19:27:37 +02:00
committed by Thilo Graf
parent f6cf97a321
commit 3084287bd1
4 changed files with 20 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ AM_LDFLAGS += \
-lgsttag-1.0 \
-lgstmpegts-1.0
else
if BOXMODEL_HD60
if BOXMODEL_HISILICON
libarmbox_la_SOURCES += \
playback_hisilicon.cpp
else

View File

@@ -137,7 +137,7 @@ int cAudio::Start(void)
{
int ret;
ret = ioctl(fd, AUDIO_PLAY);
#ifdef BOXMODEL_HD60 || BOXMODEL_HD61
#if BOXMODEL_HISILICON
ioctl(fd, AUDIO_CONTINUE);
#endif
return ret;

View File

@@ -541,7 +541,7 @@ int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned sho
playstate = VIDEO_PLAYING;
fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX);
int res = fop(ioctl, VIDEO_PLAY);
#ifdef BOXMODEL_HD60 || BOXMODEL_HD61
#if BOXMODEL_HISILICON
fop(ioctl, VIDEO_CONTINUE);
#endif
if (brightness > -1) {