Fix VP9 playback for the Octagon SF4008

This commit is contained in:
samsamsam
2019-02-02 18:44:05 +01:00
committed by Thilo Graf
parent c298f20a69
commit 4e11cb9a92
2 changed files with 6 additions and 2 deletions

View File

@@ -698,7 +698,7 @@ int main(int argc, char *argv[])
memset(argvBuff, '\0', sizeof(argvBuff)); memset(argvBuff, '\0', sizeof(argvBuff));
int commandRetVal = -1; int commandRetVal = -1;
/* inform client that we can handle additional commands */ /* inform client that we can handle additional commands */
fprintf(stderr, "{\"EPLAYER3_EXTENDED\":{\"version\":%d}}\n", 52); fprintf(stderr, "{\"EPLAYER3_EXTENDED\":{\"version\":%d}}\n", 53);
PlayFiles_t playbackFiles; PlayFiles_t playbackFiles;
memset(&playbackFiles, 0x00, sizeof(playbackFiles)); memset(&playbackFiles, 0x00, sizeof(playbackFiles));

View File

@@ -137,8 +137,12 @@ stb_type_t GetSTBType()
{ {
type = STB_DREAMBOX; type = STB_DREAMBOX;
} }
else if (access("/proc/stb/info/vumodel", F_OK) != -1) else if (access("/proc/stb/info/vumodel", F_OK) != -1 && \
access("/proc/stb/info/boxtype", F_OK) == -1)
{ {
// some STB like Octagon SF4008 has also /proc/stb/info/vumodel
// but VU PLUS does not have /proc/stb/info/boxtype
// please see: https://gitlab.com/e2i/e2iplayer/issues/282
type = STB_VUPLUS; type = STB_VUPLUS;
} }
else if (access("/sys/firmware/devicetree/base/soc/hisilicon_clock/name", F_OK) != -1) else if (access("/sys/firmware/devicetree/base/soc/hisilicon_clock/name", F_OK) != -1)