video.cpp: use videoDevice for ShowPicture in MP mode

This commit is contained in:
GetAway
2022-10-23 20:18:28 +02:00
parent 37326a1002
commit ea4b5f2389

View File

@@ -837,12 +837,16 @@ bool cVideo::ShowPicture(const char *fname)
hal_info("%s: video_standby == true\n", __func__); hal_info("%s: video_standby == true\n", __func__);
return ret; return ret;
} }
/* Maybe fd is closed, but what is the problem? Later we call openDevice().
Works on following boxmodels */
#if !BOXMODEL_HISILICON && !BOXMODEL_BRE2ZE4K && !BOXMODEL_H7 && !BOXMODEL_H51 && !BOXMODEL_HD60 && !BOXMODEL_HD61 && !BOXMODEL_MULTIBOX && !BOXMODEL_MULTIBOXSE
/* in movieplayer mode, fd is not opened */ /* in movieplayer mode, fd is not opened */
if (fd == -1) if (fd == -1)
{ {
hal_info("%s: decoder not opened\n", __func__); hal_info("%s: decoder not opened\n", __func__);
return ret; return ret;
} }
#endif
struct stat st; struct stat st;
if (stat(fname, &st)) if (stat(fname, &st))