mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
fb_generic: avoid possible crash on shutdown
Observed on generic platform.
Origin commit data
------------------
Branch: ni/coolstream
Commit: a8f62d37fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1551,6 +1551,8 @@ bool CFrameBuffer::showFrame(const std::string & filename, int fallback_mode)
|
||||
|
||||
if (access(picture.c_str(), F_OK) == 0)
|
||||
{
|
||||
if (videoDecoder)
|
||||
{
|
||||
#if HAVE_COOL_HARDWARE //FIXME: inside libcs no return value available
|
||||
videoDecoder->ShowPicture(picture.c_str());
|
||||
ret = true;
|
||||
@@ -1559,6 +1561,9 @@ bool CFrameBuffer::showFrame(const std::string & filename, int fallback_mode)
|
||||
ret = true;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
dprintf(DEBUG_NORMAL,"[CFrameBuffer]\[%s - %d], no videoplayer instance available\n", __func__, __LINE__);
|
||||
}
|
||||
else
|
||||
{
|
||||
dprintf(DEBUG_NORMAL,"[CFrameBuffer]\[%s - %d], image not found: %s\n", __func__, __LINE__, picture.c_str());
|
||||
|
Reference in New Issue
Block a user