mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
infoviewer: fix possible segfault
If no NEUTRINO_ICON_REC was defined, it will crash here.
Now 1st icon will be checked for availability and is used.
This error was observed on start of timeshift recording.
Origin commit data
------------------
Branch: ni/coolstream
Commit: ed4575ba11
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-21 (Fri, 21 Jan 2022)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -322,10 +322,13 @@ void CInfoViewer::showRecordIcon (const bool show)
|
|||||||
|
|
||||||
if (rec->isPainted())
|
if (rec->isPainted())
|
||||||
{
|
{
|
||||||
if (rec->getCCItem(NEUTRINO_ICON_REC)->isPainted())
|
if (rec->getCCItem(0))
|
||||||
rec->getCCItem(NEUTRINO_ICON_REC)->kill();
|
{
|
||||||
else
|
if (rec->getCCItem(0)->isPainted())
|
||||||
rec->getCCItem(NEUTRINO_ICON_REC)->paint();
|
rec->getCCItem(0)->kill();
|
||||||
|
else
|
||||||
|
rec->getCCItem(0)->paint();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rec->paint();
|
rec->paint();
|
||||||
|
Reference in New Issue
Block a user