From 923b7a491f4616a2d0ea6ad3bd0f855517e6f17d Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 8 Mar 2013 21:56:11 +0000 Subject: [PATCH] dvr: ensure unlinked entry updates are properly handled previously it updated things that were already linked and also on different channels entirely. (cherry picked from commit 6c6e0541be21fc574241c3c244f2b28c24db2021) --- src/dvr/dvr_db.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index ecc2e0da..a91f216f 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -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;