]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvr: ensure unlinked entry updates are properly handled
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 8 Mar 2013 21:56:11 +0000 (21:56 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 26 Mar 2013 10:04:26 +0000 (10:04 +0000)
previously it updated things that were already linked and also on
different channels entirely.
(cherry picked from commit 6c6e0541be21fc574241c3c244f2b28c24db2021)

src/dvr/dvr_db.c

index ecc2e0da78779365cb466f7a0a184282128452ea..a91f216f57b7219cdeaf4659630be4878e38598c 100644 (file)
@@ -828,6 +828,8 @@ 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_bcast) continue;
+      if (de->de_channel != e->channel) continue;
       if (dvr_entry_fuzzy_match(de, e)) {
         e->getref(e);
         de->de_bcast = e;