dvr: ensure unlinked entry updates are properly handled

previously it updated things that were already linked and also on
different channels entirely.
This commit is contained in:
Adam Sutton 2013-03-08 21:56:11 +00:00
parent aac905c184
commit 6c6e0541be

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;