src/neutrino.cpp: Simplification EVT_AUTO_SET_VIDEOSYSTEM handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: ea18657562
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-23 (Thu, 23 Mar 2017)


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

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2017-03-23 21:26:57 +01:00
parent 1eb46311d5
commit 968e1ce9c0

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__);
COsdHelpers *coh = COsdHelpers::getInstance();
int videoSystem = (int)data;
if (coh->getVideoSystem() == videoSystem)
return messages_return::handled;
if (!frameBufferInitialized) {
if (coh->getVideoSystem() != videoSystem) {
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;
}
if(msg == NeutrinoMessages::EVT_ZAP_COMPLETE) {