From ab7302ec99587576f76d22d03bd6853769868432 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 8 Mar 2013 21:59:37 +0000 Subject: [PATCH] dvr: another minor improvement to epg/dvr relinking Realised that we don't need to update things that are no longer scheduled (i.e. complete). --- src/dvr/dvr_db.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index a91f216f..100400c2 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -828,6 +828,7 @@ void dvr_event_updated ( epg_broadcast_t *e ) _dvr_entry_update(de, e, NULL, NULL, NULL, 0, 0, 0, 0); else { LIST_FOREACH(de, &dvrentries, de_global_link) { + if (de->de_sched_state != DVR_SCHEDULED) continue; if (de->de_bcast) continue; if (de->de_channel != e->channel) continue; if (dvr_entry_fuzzy_match(de, e)) {