Merge pull request #305 from manio/master
capmt: do not duplicate subscribed services
This commit is contained in:
commit
5ef248a00f
1 changed files with 8 additions and 0 deletions
|
@ -898,6 +898,14 @@ capmt_service_start(service_t *s)
|
|||
return;
|
||||
tuner = lfe->lfe_adapter->la_dvb_number;
|
||||
|
||||
TAILQ_FOREACH(capmt, &capmts, capmt_link) {
|
||||
LIST_FOREACH(ct, &capmt->capmt_services, ct_link) {
|
||||
/* skip, if we already have this service */
|
||||
if (ct->ct_service == t)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
TAILQ_FOREACH(capmt, &capmts, capmt_link) {
|
||||
/* skip, if we're not active */
|
||||
if (!capmt->capmt_enabled)
|
||||
|
|
Loading…
Add table
Reference in a new issue