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 6c6e0541be)
This commit is contained in:
Adam Sutton 2013-03-08 21:56:11 +00:00
parent 00fd80f1d4
commit 923b7a491f

View 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;