Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVB: Improve EPG running check - do not stop other DVR records
  • Loading branch information
perexg committed Nov 1, 2015
1 parent 18d993f commit dc9c9b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -1577,7 +1577,7 @@ void dvr_event_running(epg_broadcast_t *e, epg_source_t esrc, int running)
{
dvr_entry_t *de, *de2;

if (esrc != EPG_SOURCE_EIT)
if (esrc != EPG_SOURCE_EIT || e->dvb_eid == 0)
return;
de = dvr_entry_find_by_event(e);
if (de == NULL)
Expand All @@ -1594,10 +1594,15 @@ void dvr_event_running(epg_broadcast_t *e, epg_source_t esrc, int running)
assert(e->channel == de->de_channel);
LIST_FOREACH(de, &de->de_channel->ch_dvrs, de_channel_link) {
if (de != de2) {
if (de->de_dvb_eid == 0)
continue;
if (de->de_dvb_eid == e->dvb_eid)
goto running;
dvr_entry_not_running(de, "other running event",
epg_broadcast_get_title(e, NULL));
continue;
}
running:
if (!de->de_running_start)
tvhdebug("dvr", "dvr entry %s event %s on %s - EPG marking start",
idnode_uuid_as_sstr(&de->de_id),
Expand Down

0 comments on commit dc9c9b2

Please sign in to comment.