Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
opentv: save service when the opentv channel number is updated
  • Loading branch information
perexg committed Aug 19, 2014
1 parent ae0d4dc commit a43e80d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/epggrab/module/opentv.c
Expand Up @@ -401,8 +401,10 @@ opentv_desc_channels
/* Find the service */
svc = mpegts_service_find(mm, sid, 0, 0, NULL);
tvhtrace(mt->mt_name, " svc %p [%s]", svc, svc ? svc->s_nicename : NULL);
if (svc)
if (svc && svc->s_dvb_opentv_chnum != cnum) {
svc->s_dvb_opentv_chnum = cnum;
service_request_save((service_t *)svc, 0);
}
if (svc && LIST_FIRST(&svc->s_channels)) {
ec =_opentv_find_epggrab_channel(mod, cid, 1, &save);
ecl = LIST_FIRST(&ec->channels);
Expand Down

0 comments on commit a43e80d

Please sign in to comment.