1
0
mirror of https://github.com/DigitalDevices/pvr.octonet.git synced 2023-10-10 13:36:57 +02:00

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

View File

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