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:
TangoCash
2016-05-29 22:39:42 +02:00
committed by vanhofen
parent 5e6aa03f9e
commit 66fcaa3a90

View File

@@ -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";