fb_generic.cpp: fix build for CST hardware...

was broken with commit 8b7de5f


Origin commit data
------------------
Branch: ni/coolstream
Commit: 86df410b6a
Author: GetAway <get-away@t-online.de>
Date: 2019-03-12 (Tue, 12 Mar 2019)



------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2019-03-12 22:00:11 +01:00
committed by vanhofen
parent c8830c0ce9
commit 7e0c80e812

View File

@@ -1544,6 +1544,14 @@ void CFrameBuffer::Clear()
bool CFrameBuffer::showFrame(const std::string & filename, bool fallback)
{
std::string picture = getIconPath(filename, "");
#if HAVE_COOL_HARDWARE
(void)fallback;
if (access(picture.c_str(), F_OK) == 0)
{
videoDecoder->ShowPicture(picture.c_str());
return true;
}
#else
if (access(picture.c_str(), F_OK) == 0)
{
if (videoDecoder->ShowPicture(picture.c_str()))
@@ -1557,6 +1565,7 @@ bool CFrameBuffer::showFrame(const std::string & filename, bool fallback)
dprintf(DEBUG_NORMAL,"[CFrameBuffer]\[%s - %d], fallback is disabled, paint of image was stopped: %s\n", __func__, __LINE__, picture.c_str());
}
}
#endif
else
dprintf(DEBUG_NORMAL,"[CFrameBuffer]\[%s - %d], image not found: %s\n", __func__, __LINE__, picture.c_str());