mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
fix segfault in lcd4l if no movieinfo is present
Origin commit data
------------------
Branch: ni/coolstream
Commit: bf5a3aa2f2
Author: TangoCash <eric@loxat.de>
Date: 2016-05-29 (Sun, 29 May 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -480,8 +480,11 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
{
|
||||
if (ModeTshift)
|
||||
Service = g_Locale->getText(LOCALE_RECORDINGMENU_TIMESHIFT);
|
||||
else if (!CMoviePlayerGui::getInstance().p_movie_info->epgChannel.empty())
|
||||
else if (CMoviePlayerGui::getInstance().p_movie_info)
|
||||
{
|
||||
if (!CMoviePlayerGui::getInstance().p_movie_info->epgChannel.empty())
|
||||
Service = CMoviePlayerGui::getInstance().p_movie_info->epgChannel;
|
||||
}
|
||||
|
||||
if (Service.empty())
|
||||
Service = g_Locale->getText(LOCALE_MOVIEPLAYER_HEAD);
|
||||
@@ -498,10 +501,13 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
Logo = ICONSDIR "/" NEUTRINO_ICON_PAUSE ICONSEXT;
|
||||
break;
|
||||
case 3: /* play */
|
||||
if (CMoviePlayerGui::getInstance().p_movie_info)
|
||||
{
|
||||
if (!GetLogoName(CMoviePlayerGui::getInstance().p_movie_info->epgId,
|
||||
CMoviePlayerGui::getInstance().p_movie_info->epgChannel,
|
||||
Logo))
|
||||
Logo = ICONSDIR "/" NEUTRINO_ICON_PLAY ICONSEXT;
|
||||
}
|
||||
break;
|
||||
default: /* show movieplayer-icon */
|
||||
Logo = ICONSDIR "/" NEUTRINO_ICON_MOVIEPLAYER ICONSEXT;
|
||||
@@ -690,11 +696,13 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
//}
|
||||
else if (parseID == MODE_TS)
|
||||
{
|
||||
if (!CMoviePlayerGui::getInstance().pretty_name.empty())
|
||||
Event = CMoviePlayerGui::getInstance().pretty_name;
|
||||
|
||||
if (CMoviePlayerGui::getInstance().p_movie_info)
|
||||
{
|
||||
if (!CMoviePlayerGui::getInstance().p_movie_info->epgTitle.empty())
|
||||
Event = CMoviePlayerGui::getInstance().p_movie_info->epgTitle;
|
||||
}
|
||||
else if (!CMoviePlayerGui::getInstance().pretty_name.empty())
|
||||
Event = CMoviePlayerGui::getInstance().pretty_name;
|
||||
|
||||
if (Event.empty())
|
||||
Event = "MOVIE";
|
||||
|
Reference in New Issue
Block a user