screensaver.cpp: use fallback if video decoder is busy

This commit is contained in:
GetAway
2019-01-13 11:13:24 +01:00
parent acc651e528
commit 8b7de5fc8f
3 changed files with 19 additions and 8 deletions

View File

@@ -302,7 +302,7 @@ void CScreenSaver::paint()
dprintf(DEBUG_INFO, "[CScreenSaver] %s - %d : %s\n", __func__, __LINE__, v_bg_files.at(index).c_str());
#if HAVE_ARM_HARDWARE
m_frameBuffer->showFrame(v_bg_files.at(index));
m_frameBuffer->showFrame(v_bg_files.at(index), true);
#else
paintImage(v_bg_files.at(index), 0, 0, m_frameBuffer->getScreenWidth(true), m_frameBuffer->getScreenHeight(true));
#endif
@@ -322,7 +322,7 @@ void CScreenSaver::paint()
scr_clock->setClockFont(g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]);
scr_clock->disableSaveBg();
scr_clock->doPaintBg(false);
m_frameBuffer->showFrame("blackscreen.jpg");
m_frameBuffer->showFrame("blackscreen.jpg", true);
}
scr_clock->setTextColor(clr.i_color);