mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
fb_generic: avoid possible crash on shutdown
Observed on generic platform.
This commit is contained in:
@@ -1559,13 +1559,18 @@ bool CFrameBuffer::showFrame(const std::string & filename, int fallback_mode)
|
|||||||
|
|
||||||
if (access(picture.c_str(), F_OK) == 0)
|
if (access(picture.c_str(), F_OK) == 0)
|
||||||
{
|
{
|
||||||
|
if (videoDecoder)
|
||||||
|
{
|
||||||
#if HAVE_COOL_HARDWARE //FIXME: inside libcs no return value available
|
#if HAVE_COOL_HARDWARE //FIXME: inside libcs no return value available
|
||||||
videoDecoder->ShowPicture(picture.c_str());
|
videoDecoder->ShowPicture(picture.c_str());
|
||||||
ret = true;
|
|
||||||
#else
|
|
||||||
if (videoDecoder->ShowPicture(picture.c_str()))
|
|
||||||
ret = true;
|
ret = true;
|
||||||
|
#else
|
||||||
|
if (videoDecoder->ShowPicture(picture.c_str()))
|
||||||
|
ret = true;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
else
|
||||||
|
dprintf(DEBUG_NORMAL,"[CFrameBuffer]\[%s - %d], no videoplayer instance available\n", __func__, __LINE__);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user