Commit 2da9df1e authored by Christoph Pfister's avatar Christoph Pfister

fix build for gcc 4.7

parent 18960c8e
...@@ -690,15 +690,15 @@ void AtscEpgFilter::processEitSection(const char *data, int size) ...@@ -690,15 +690,15 @@ void AtscEpgFilter::processEitSection(const char *data, int size)
// 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011) // 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011)
QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC); QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC);
for (AtscEitSectionEntry entry = eitSection.entries(); (entryCount > 0) && entry.isValid(); for (AtscEitSectionEntry eitEntry = eitSection.entries();
--entryCount, entry.advance()) { (entryCount > 0) && eitEntry.isValid(); --entryCount, eitEntry.advance()) {
DvbEpgEntry epgEntry; DvbEpgEntry epgEntry;
epgEntry.channel = channel; epgEntry.channel = channel;
epgEntry.begin = baseDateTime.addSecs(entry.startTime()); epgEntry.begin = baseDateTime.addSecs(eitEntry.startTime());
epgEntry.duration = QTime().addSecs(entry.duration()); epgEntry.duration = QTime().addSecs(eitEntry.duration());
epgEntry.title = entry.title(); epgEntry.title = eitEntry.title();
quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(entry.eventId())); quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(eitEntry.eventId()));
DvbSharedEpgEntry entry = epgEntries.value(id); DvbSharedEpgEntry entry = epgEntries.value(id);
if (entry.isValid() && (entry->channel == epgEntry.channel) && if (entry.isValid() && (entry->channel == epgEntry.channel) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment