Commit e7806ab9 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: epg: only add current or future epg data

Some channels are sending epg events from start of the day
parent a791fc94
...@@ -140,6 +140,8 @@ bool EPGView::addEPGEvent( vlc_epg_event_t *data, QString channelName, bool b_cu ...@@ -140,6 +140,8 @@ bool EPGView::addEPGEvent( vlc_epg_event_t *data, QString channelName, bool b_cu
bool b_refresh_channels = false; bool b_refresh_channels = false;
QDateTime eventStart = QDateTime::fromTime_t( data->i_start ); QDateTime eventStart = QDateTime::fromTime_t( data->i_start );
if ( eventStart.addSecs( data->i_duration ) < m_baseTime )
return false; /* EPG feed sent expired item */
if ( eventStart < m_startTime ) if ( eventStart < m_startTime )
{ {
m_startTime = eventStart; m_startTime = eventStart;
......
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