mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
infoviewer.cpp: prevent segfault if framebuffer is ...
already deactivated in standby mode. (race condition)
This commit is contained in:
@@ -1118,9 +1118,12 @@ void CInfoViewer::loop(bool show_dot)
|
||||
res = messages_return::cancel_all;
|
||||
hideIt = true;
|
||||
} else if ((msg == NeutrinoMessages::EVT_TIMER) && (data == sec_timer_id)) {
|
||||
if (frameBuffer->getActive())
|
||||
{
|
||||
showSNR ();
|
||||
if (timeset)
|
||||
if (timeset) {
|
||||
clock->paint(CC_SAVE_SCREEN_NO);
|
||||
}
|
||||
showRecordIcon (show_dot);
|
||||
show_dot = !show_dot;
|
||||
showInfoFile();
|
||||
@@ -1130,6 +1133,7 @@ void CInfoViewer::loop(bool show_dot)
|
||||
infoViewerBB->showIcon_16_9();
|
||||
//infoViewerBB->paint_ca_icons(0);
|
||||
infoViewerBB->showIcon_Resolution();
|
||||
}
|
||||
} else if ((msg == NeutrinoMessages::EVT_RECORDMODE) &&
|
||||
(CMoviePlayerGui::getInstance().timeshift) && (CRecordManager::getInstance()->GetRecordCount() == 1)) {
|
||||
res = CNeutrinoApp::getInstance()->handleMsg(msg, data);
|
||||
|
Reference in New Issue
Block a user