opentv: save service when the opentv channel number is updated

This commit is contained in:
Jaroslav Kysela 2014-08-19 17:30:47 +02:00
parent ae0d4dc462
commit a43e80d6a9

View file

@ -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);