- pzapit: fix change video mode; tell neutrino about the new value

This commit is contained in:
svenhoefer
2016-09-14 00:23:23 +02:00
parent 1caa54d6ab
commit 8d1710bb07
2 changed files with 5 additions and 2 deletions

View File

@@ -242,6 +242,8 @@ public:
sigc::signal<bool> OnBeforeRestart;
sigc::signal<void> OnAfterSetupFonts;
void channelRezap();
void g_settings_video_Mode(int value) { g_settings.video_Mode = value; }
};
#endif

View File

@@ -75,6 +75,8 @@
#include <libtuxtxt/teletext.h>
#include <OpenThreads/ScopedLock>
#include <neutrino.h>
/* globals */
int sig_delay = 2; // seconds between signal check
@@ -1653,14 +1655,13 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
}
break;
}
#if 0
case CZapitMessages::CMD_SET_VIDEO_SYSTEM: {
CZapitMessages::commandInt msg;
CBasicServer::receive_data(connfd, &msg, sizeof(msg));
videoDecoder->SetVideoSystem(msg.val);
CNeutrinoApp::getInstance()->g_settings_video_Mode(msg.val);
break;
}
#endif
#if 0
case CZapitMessages::CMD_SET_NTSC: {
videoDecoder->SetVideoSystem(8);