mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
fb_generic.cpp: adapt to "Refactor video.cpp: Convert void function to bool function for enhanced result checking"
- this only affects CST
This commit is contained in:
@@ -241,7 +241,7 @@ public:
|
||||
bool SetCECMode(VIDEO_HDMI_CEC_MODE Mode);
|
||||
void SetCECAutoView(bool OnOff);
|
||||
void SetCECAutoStandby(bool OnOff);
|
||||
void ShowPicture(const char * fname);
|
||||
bool ShowPicture(const char * fname);
|
||||
void StopPicture();
|
||||
void Standby(bool bOn);
|
||||
void Pig(int x, int y, int w, int h, int osd_w = 1064, int osd_h = 600);
|
||||
|
@@ -274,7 +274,7 @@ public:
|
||||
bool SetCECMode(VIDEO_HDMI_CEC_MODE Mode);
|
||||
void SetCECAutoView(bool OnOff);
|
||||
void SetCECAutoStandby(bool OnOff);
|
||||
void ShowPicture(const char * fname);
|
||||
bool ShowPicture(const char * fname);
|
||||
void StopPicture();
|
||||
void Standby(bool bOn);
|
||||
void Pig(int x, int y, int w, int h, int osd_w = 1064, int osd_h = 600);
|
||||
|
@@ -1607,13 +1607,8 @@ bool CFrameBuffer::showFrame(const std::string & filename, int fallback_mode)
|
||||
{
|
||||
if (videoDecoder)
|
||||
{
|
||||
#if HAVE_CST_HARDWARE //FIXME: inside libcs no return value available
|
||||
videoDecoder->ShowPicture(picture.c_str());
|
||||
ret = true;
|
||||
#else
|
||||
if (videoDecoder->ShowPicture(picture.c_str()))
|
||||
ret = true;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
dprintf(DEBUG_NORMAL,"[CFrameBuffer]\[%s - %d], no videoplayer instance available\n", __func__, __LINE__);
|
||||
|
Reference in New Issue
Block a user