]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvr: another minor improvement to epg/dvr relinking
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 8 Mar 2013 21:59:37 +0000 (21:59 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 26 Mar 2013 10:04:26 +0000 (10:04 +0000)
Realised that we don't need to update things that are no longer
scheduled (i.e. complete).
(cherry picked from commit ab7302ec99587576f76d22d03bd6853769868432)

src/dvr/dvr_db.c

index a91f216f57b7219cdeaf4659630be4878e38598c..100400c25af09ed956e6594dd633adbdc51d8a29 100644 (file)
@@ -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)) {