lcd4linux.cpp: avoid possible crash if getLiveFE() returns NULL

Watched with generic build for pc without tuner hardware.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 37dea94ee8
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-06-15 (Tue, 15 Jun 2021)



------------------
This commit was generated by Migit
This commit is contained in:
2021-06-15 18:42:28 +02:00
committed by vanhofen
parent b740c72f93
commit fb8407d007

View File

@@ -524,14 +524,16 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
/* ----------------------------------------------------------------- */
int Tuner = 1 + CFEManager::getInstance()->getLiveFE()->getNumber();
if (m_Tuner != Tuner)
if (CFEManager::getInstance()->getLiveFE())
{
WriteFile(TUNER, to_string(Tuner));
m_Tuner = Tuner;
}
int Tuner = 1 + CFEManager::getInstance()->getLiveFE()->getNumber();
if (m_Tuner != Tuner)
{
WriteFile(TUNER, to_string(Tuner));
m_Tuner = Tuner;
}
}
/* ----------------------------------------------------------------- */
int Volume = g_settings.current_volume;