mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
lcd4linux.cpp: avoid possible crash if getLiveFE() returns NULL
Watched with generic build for pc without tuner hardware.
This commit is contained in:
@@ -533,14 +533,16 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
|
|
||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
int Tuner = 1 + CFEManager::getInstance()->getLiveFE()->getNumber();
|
if (CFEManager::getInstance()->getLiveFE())
|
||||||
|
|
||||||
if (m_Tuner != Tuner)
|
|
||||||
{
|
{
|
||||||
WriteFile(TUNER, to_string(Tuner));
|
int Tuner = 1 + CFEManager::getInstance()->getLiveFE()->getNumber();
|
||||||
m_Tuner = Tuner;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (m_Tuner != Tuner)
|
||||||
|
{
|
||||||
|
WriteFile(TUNER, to_string(Tuner));
|
||||||
|
m_Tuner = Tuner;
|
||||||
|
}
|
||||||
|
}
|
||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
int Volume = g_settings.current_volume;
|
int Volume = g_settings.current_volume;
|
||||||
|
Reference in New Issue
Block a user