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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2a49771010
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-09-14 (Wed, 14 Sep 2016)

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-09-14 00:23:23 +02:00
parent 4fdef6069a
commit aa010fea13
2 changed files with 5 additions and 2 deletions

View File

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

View File

@@ -77,6 +77,8 @@
#include <libtuxtxt/teletext.h> #include <libtuxtxt/teletext.h>
#include <OpenThreads/ScopedLock> #include <OpenThreads/ScopedLock>
#include <neutrino.h>
#ifdef PEDANTIC_VALGRIND_SETUP #ifdef PEDANTIC_VALGRIND_SETUP
#define VALGRIND_PARANOIA(x) memset(&x, 0, sizeof(x)) #define VALGRIND_PARANOIA(x) memset(&x, 0, sizeof(x))
#else #else
@@ -1713,14 +1715,13 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
} }
break; break;
} }
#if 0
case CZapitMessages::CMD_SET_VIDEO_SYSTEM: { case CZapitMessages::CMD_SET_VIDEO_SYSTEM: {
CZapitMessages::commandInt msg; CZapitMessages::commandInt msg;
CBasicServer::receive_data(connfd, &msg, sizeof(msg)); CBasicServer::receive_data(connfd, &msg, sizeof(msg));
videoDecoder->SetVideoSystem(msg.val); videoDecoder->SetVideoSystem(msg.val);
CNeutrinoApp::getInstance()->g_settings_video_Mode(msg.val);
break; break;
} }
#endif
#if 0 #if 0
case CZapitMessages::CMD_SET_NTSC: { case CZapitMessages::CMD_SET_NTSC: {
videoDecoder->SetVideoSystem(8); videoDecoder->SetVideoSystem(8);