mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- cleanup from unsupported DUCKBOX_HARDWARE
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -89,7 +89,7 @@ bool glcd_play = false;
|
||||
#include <gui/widget/stringinput_ext.h>
|
||||
#include <gui/screensetup.h>
|
||||
#include <gui/widget/msgbox.h>
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
#include <libavcodec/avcodec.h>
|
||||
#endif
|
||||
|
||||
@@ -1337,19 +1337,19 @@ bool CMoviePlayerGui::PlayFileStart(void)
|
||||
duration = p_movie_info->length * 60 * 1000;
|
||||
int percent = CZapit::getInstance()->GetPidVolume(p_movie_info->channelId, currentapid, currentac3 == 1);
|
||||
CZapit::getInstance()->SetVolumePercent(percent);
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CScreenSetup cSS;
|
||||
cSS.showBorder(p_movie_info->epgId);
|
||||
#endif
|
||||
} else {
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CScreenSetup cSS;
|
||||
cSS.showBorder(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
file_prozent = 0;
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
old3dmode = frameBuffer->get3DMode();
|
||||
#endif
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
@@ -1405,7 +1405,7 @@ bool CMoviePlayerGui::PlayFileStart(void)
|
||||
repeat_mode = (repeat_mode_enum) g_settings.movieplayer_repeat_on;
|
||||
playstate = CMoviePlayerGui::PLAY;
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, true);
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FF, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, false);
|
||||
@@ -1437,7 +1437,7 @@ bool CMoviePlayerGui::PlayFileStart(void)
|
||||
if (g_settings.timeshift_pause)
|
||||
{
|
||||
playstate = CMoviePlayerGui::PAUSE;
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FF, false);
|
||||
@@ -1767,7 +1767,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
repeat_mode = REPEAT_OFF;
|
||||
g_settings.movieplayer_repeat_on = repeat_mode;
|
||||
callInfoViewer();
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
} else if (msg == (neutrino_msg_t) g_settings.mpkey_next3dmode) {
|
||||
frameBuffer->set3DMode((CFrameBuffer::Mode3D)(((frameBuffer->get3DMode()) + 1) % CFrameBuffer::Mode3D_SIZE));
|
||||
} else if (msg == (neutrino_msg_t) g_settings.key_next43mode) {
|
||||
@@ -1783,7 +1783,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
FileTimeOSD->setMpTimeForced(false);
|
||||
if (playstate > CMoviePlayerGui::PLAY) {
|
||||
playstate = CMoviePlayerGui::PLAY;
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, true);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
@@ -1828,7 +1828,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
if (playstate == CMoviePlayerGui::PAUSE) {
|
||||
playstate = CMoviePlayerGui::PLAY;
|
||||
//CVFD::getInstance()->ShowIcon(VFD_ICON_PAUSE, false);
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, true);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
@@ -1839,7 +1839,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
} else {
|
||||
playstate = CMoviePlayerGui::PAUSE;
|
||||
//CVFD::getInstance()->ShowIcon(VFD_ICON_PAUSE, true);
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, true);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
@@ -1885,7 +1885,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
bool setSpeed = false;
|
||||
if (msg == (neutrino_msg_t) g_settings.mpkey_rewind) {
|
||||
newspeed = (speed >= 0) ? -1 : (speed - 1);
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, true);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, true);
|
||||
@@ -1893,7 +1893,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
#endif
|
||||
} else {
|
||||
newspeed = (speed <= 0) ? 2 : (speed + 1);
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, true);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
@@ -2010,7 +2010,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
#if 0
|
||||
clearSubtitle();
|
||||
#endif
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
} else if (msg == CRCInput::RC_text) {
|
||||
int pid = playback->GetFirstTeletextPid();
|
||||
if (pid > -1) {
|
||||
@@ -2150,7 +2150,7 @@ void CMoviePlayerGui::PlayFileEnd(bool restore)
|
||||
|
||||
playback->SetSpeed(1);
|
||||
playback->Close();
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
frameBuffer->set3DMode(old3dmode);
|
||||
CScreenSetup cSS;
|
||||
cSS.showBorder(CZapit::getInstance()->GetCurrentChannelID());
|
||||
@@ -2169,7 +2169,7 @@ void CMoviePlayerGui::PlayFileEnd(bool restore)
|
||||
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_PAUSE, false);
|
||||
#if HAVE_DUCKBOX_HARDWARE || HAVE_SPARK_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FR, false);
|
||||
CVFD::getInstance()->ShowIcon(FP_ICON_FF, false);
|
||||
#endif
|
||||
@@ -2752,7 +2752,7 @@ void CMoviePlayerGui::UpdatePosition()
|
||||
|
||||
void CMoviePlayerGui::StopSubtitles(bool enable_glcd_mirroring __attribute__((unused)))
|
||||
{
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
printf("[CMoviePlayerGui] %s\n", __FUNCTION__);
|
||||
int ttx, ttxpid, ttxpage;
|
||||
|
||||
@@ -2803,7 +2803,7 @@ void CMoviePlayerGui::showHelp()
|
||||
|
||||
void CMoviePlayerGui::StartSubtitles(bool show __attribute__((unused)))
|
||||
{
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
printf("[CMoviePlayerGui] %s: %s\n", __FUNCTION__, show ? "Show" : "Not show");
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
nGLCD::MirrorOSD(false);
|
||||
@@ -3490,7 +3490,7 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
|
||||
sc->SetSize(w, h);
|
||||
}
|
||||
}
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
sc->Start("-r 320 -j 75");
|
||||
#else
|
||||
sc->Start();
|
||||
|
Reference in New Issue
Block a user