mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
ShowPicture: revert API change
This commit is contained in:
@@ -211,11 +211,7 @@ void cVideo::SetVideoMode(analog_mode_t)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MARTII
|
|
||||||
void cVideo::ShowPicture(const char *fname, bool)
|
|
||||||
#else
|
|
||||||
void cVideo::ShowPicture(const char *fname)
|
void cVideo::ShowPicture(const char *fname)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
lt_info("%s(%s)\n", __func__, fname);
|
lt_info("%s(%s)\n", __func__, fname);
|
||||||
if (access(fname, R_OK))
|
if (access(fname, R_OK))
|
||||||
|
@@ -178,11 +178,7 @@ class cVideo : public OpenThreads::Thread
|
|||||||
bool SetCECMode(VIDEO_HDMI_CEC_MODE) { return true; };
|
bool SetCECMode(VIDEO_HDMI_CEC_MODE) { return true; };
|
||||||
void SetCECAutoView(bool) { return; };
|
void SetCECAutoView(bool) { return; };
|
||||||
void SetCECAutoStandby(bool) { return; };
|
void SetCECAutoStandby(bool) { return; };
|
||||||
#ifdef MARTII
|
|
||||||
void ShowPicture(const char * fname, bool isM2V = false);
|
|
||||||
#else
|
|
||||||
void ShowPicture(const char * fname);
|
void ShowPicture(const char * fname);
|
||||||
#endif
|
|
||||||
void StopPicture();
|
void StopPicture();
|
||||||
void Standby(unsigned int bOn);
|
void Standby(unsigned int bOn);
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
|
@@ -370,11 +370,7 @@ void cVideo::SetVideoMode(analog_mode_t mode)
|
|||||||
proc_put("/proc/stb/avs/0/colorformat", m, strlen(m));
|
proc_put("/proc/stb/avs/0/colorformat", m, strlen(m));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MARTII
|
|
||||||
void cVideo::ShowPicture(const char * fname, bool isM2V)
|
|
||||||
#else
|
|
||||||
void cVideo::ShowPicture(const char * fname)
|
void cVideo::ShowPicture(const char * fname)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
lt_debug("%s(%s)\n", __func__, fname);
|
lt_debug("%s(%s)\n", __func__, fname);
|
||||||
#ifndef MARTII
|
#ifndef MARTII
|
||||||
@@ -393,7 +389,8 @@ void cVideo::ShowPicture(const char * fname)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
if (isM2V)
|
const char *lastDot = strrchr(fname, '.');
|
||||||
|
if (lastDot && !strcasecmp(lastDot + 1, "m2v"))
|
||||||
strncpy(destname, fname, sizeof(destname));
|
strncpy(destname, fname, sizeof(destname));
|
||||||
else {
|
else {
|
||||||
#endif
|
#endif
|
||||||
|
@@ -174,11 +174,7 @@ class cVideo
|
|||||||
bool SetCECMode(VIDEO_HDMI_CEC_MODE) { return true; };
|
bool SetCECMode(VIDEO_HDMI_CEC_MODE) { return true; };
|
||||||
void SetCECAutoView(bool) { return; };
|
void SetCECAutoView(bool) { return; };
|
||||||
void SetCECAutoStandby(bool) { return; };
|
void SetCECAutoStandby(bool) { return; };
|
||||||
#ifdef MARTII
|
|
||||||
void ShowPicture(const char * fname, bool isM2V = false);
|
|
||||||
#else
|
|
||||||
void ShowPicture(const char * fname);
|
void ShowPicture(const char * fname);
|
||||||
#endif
|
|
||||||
void StopPicture();
|
void StopPicture();
|
||||||
void Standby(unsigned int bOn);
|
void Standby(unsigned int bOn);
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
|
Reference in New Issue
Block a user