diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index e597ebcad..baca993c2 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -933,8 +933,8 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start if (!mp_info){ std::string fromto = epg_start + " - " + epg_end; - - GetPrevNextEPGData(epgData.eventID, &epgData.epg_times.startzeit); + time_t epg_start_time = epgData.epg_times.startzeit; + GetPrevNextEPGData(epgData.eventID, &epg_start_time); Bottombox->enableArrows(prev_id && !call_fromfollowlist, next_id && !call_fromfollowlist); Bottombox->setText(fromto, epg_date); @@ -1083,6 +1083,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start if (g_Timerd->isTimerdAvailable()) { bool doRecord = true; + time_t epg_start_time = epgData.epg_times.startzeit; recDir = g_settings.network_nfs_recordingdir; if (g_settings.recording_choose_direct_rec_dir == 2) { CFileBrowser b; @@ -1097,7 +1098,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->setSize((int)(g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->getSize() * BIGFONT_FACTOR)); } bigFonts = g_settings.bigFonts; - show(channel_id,epgData.eventID,&epgData.epg_times.startzeit,false); + show(channel_id,epgData.eventID,&epg_start_time,false); showPos=0; } else if (g_settings.recording_choose_direct_rec_dir == 1) @@ -1113,7 +1114,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->setSize((int)(g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->getSize() * BIGFONT_FACTOR)); } bigFonts = g_settings.bigFonts; - show(channel_id,epgData.eventID,&epgData.epg_times.startzeit,false); + show(channel_id,epgData.eventID,&epg_start_time,false); showPos=0; timeoutEnd = CRCInput::calcTimeoutEnd(timeout); } else @@ -1448,7 +1449,8 @@ void CEpgData::GetEPGData(const t_channel_id channel_id, uint64_t id, time_t* st reformatExtendedEvents("Presenter", g_Locale->getText(LOCALE_EPGEXTENDED_PRESENTER), false, epgData); } - struct tm *pStartZeit = localtime(&(epgData.epg_times).startzeit); + time_t epg_start_time = epgData.epg_times.startzeit; + struct tm *pStartZeit = localtime(&epg_start_time); tmp_curent_zeit = (epgData.epg_times).startzeit; char temp[20]={0}; strftime( temp, sizeof(temp),"%d.%m.%Y", pStartZeit);