src/neutrino.cpp: Simplification EVT_AUTO_SET_VIDEOSYSTEM handling

Origin commit data
------------------
Commit: ea18657562
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-23 (Thu, 23 Mar 2017)
This commit is contained in:
Michael Liebmann
2017-03-23 21:26:57 +01:00
parent dee1c05e9c
commit a080cf7880

View File

@@ -2995,16 +2995,11 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
printf(">>>>>[CNeutrinoApp::%s:%d] Receive EVT_AUTO_SET_VIDEOSYSTEM message\n", __func__, __LINE__); printf(">>>>>[CNeutrinoApp::%s:%d] Receive EVT_AUTO_SET_VIDEOSYSTEM message\n", __func__, __LINE__);
COsdHelpers *coh = COsdHelpers::getInstance(); COsdHelpers *coh = COsdHelpers::getInstance();
int videoSystem = (int)data; int videoSystem = (int)data;
if (coh->getVideoSystem() == videoSystem) if (coh->getVideoSystem() != videoSystem) {
return messages_return::handled;
if (!frameBufferInitialized) {
coh->setVideoSystem(videoSystem, false); coh->setVideoSystem(videoSystem, false);
return messages_return::handled; if (frameBufferInitialized)
coh->changeOsdResolution(0, true, false);
} }
coh->setVideoSystem(videoSystem, false);
coh->changeOsdResolution(0, true, false);
return messages_return::handled; return messages_return::handled;
} }
if(msg == NeutrinoMessages::EVT_ZAP_COMPLETE) { if(msg == NeutrinoMessages::EVT_ZAP_COMPLETE) {