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:
parent
880d313bef
commit
d1f9af2225
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user