Fix VP9 playback for the Octagon SF4008

Origin commit data
------------------
Branch: master
Commit: b6019d4f65
Author: samsamsam <samsamsam@o2.pl>
Date: 2019-02-02 (Sat, 02 Feb 2019)


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

------------------
This commit was generated by Migit
This commit is contained in:
samsamsam
2019-02-02 18:44:05 +01:00
committed by max_10
parent de9ff6374a
commit c3bdd9bd1f
2 changed files with 6 additions and 2 deletions

View File

@@ -699,7 +699,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)