OctonetData: Fix computing last_end in getEPG()

This commit is contained in:
Dennis Hamester 2016-11-14 11:36:51 +01:00
parent 880d313bef
commit d1f9af2225
1 changed files with 3 additions and 3 deletions

View File

@ -248,9 +248,9 @@ PVR_ERROR OctonetData::getEPG(ADDON_HANDLE handle, const PVR_CHANNEL &channel, t
std::vector<OctonetEpgEntry>::iterator it;
time_t last_end = 0;
for (it = chan.epg.begin(); it < chan.epg.end(); ++it) {
if (end > last_end)
last_end = end;
for (it = chan.epg.begin(); it != chan.epg.end(); ++it) {
if (it->end > last_end)
last_end = it->end;
if (it->end < start || it->start > end) {
continue;