mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user