Skip to content

Commit

Permalink
Merge pull request #3831 from xhaggi/epg-past-data
Browse files Browse the repository at this point in the history
[pvr] fix: wrong condition while getting first/last epg date
  • Loading branch information
xhaggi committed Dec 16, 2013
2 parents 1cc335c + aa7f29b commit f0a642d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/pvr/channels/PVRChannelGroup.cpp
Expand Up @@ -1135,13 +1135,13 @@ CDateTime CPVRChannelGroup::GetEPGDate(EpgDateType epgDateType) const
{
case EPG_FIRST_DATE:
epgDate = epg->GetFirstDate();
if (epgDate.IsValid() && (date.IsValid() || epgDate < date))
if (epgDate.IsValid() && (!date.IsValid() || epgDate < date))
date = epgDate;
break;

case EPG_LAST_DATE:
epgDate = epg->GetLastDate();
if (epgDate.IsValid() && (date.IsValid() || epgDate > date))
if (epgDate.IsValid() && (!date.IsValid() || epgDate > date))
date = epgDate;
break;
}
Expand Down

0 comments on commit f0a642d

Please sign in to comment.