Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epg: fix _epg_broadcast_updated for event without assigned channel, f…
…ixes #3251
  • Loading branch information
perexg committed Nov 2, 2015
1 parent e2d8fe0 commit a5e1cf5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/channels.c
Expand Up @@ -937,8 +937,9 @@ channel_delete ( channel_t *ch, int delconf )
void
channel_save ( channel_t *ch )
{
htsmsg_t *c = htsmsg_create_map();
htsmsg_t *c;
if (ch->ch_dont_save == 0) {
c = htsmsg_create_map();
idnode_save(&ch->ch_id, c);
hts_settings_save(c, "channel/config/%s", idnode_uuid_as_sstr(&ch->ch_id));
htsmsg_destroy(c);
Expand Down
4 changes: 3 additions & 1 deletion src/download.c
Expand Up @@ -208,8 +208,10 @@ download_start( download_t *dn, const char *url, void *aux )
http_client_close(dn->http_client);
dn->http_client = NULL;
}
if (url)
if (url) {
free(dn->url);
dn->url = strdup(url);
}
dn->aux = aux;
gtimer_arm(&dn->fetch_timer, download_fetch, dn, 0);
}
Expand Down
8 changes: 5 additions & 3 deletions src/epg.c
Expand Up @@ -1607,9 +1607,11 @@ static void _epg_broadcast_updated ( void *eo )
htsp_event_add(eo);
notify_delayed(id, "epg", "create");
}
dvr_event_updated(eo);
dvr_autorec_check_event(eo);
channel_event_updated(eo);
if (ebc->channel) {
dvr_event_updated(eo);
dvr_autorec_check_event(eo);
channel_event_updated(eo);
}
}

static epg_broadcast_t **_epg_broadcast_skel ( void )
Expand Down

0 comments on commit a5e1cf5

Please sign in to comment.