Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
channels: get number - use always lcn from bouquet if any
  • Loading branch information
perexg committed Aug 26, 2016
1 parent b9e483d commit a88ba9d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/channels.c
Expand Up @@ -700,12 +700,17 @@ channel_get_number ( channel_t *ch )
if (ch->ch_number) {
n = ch->ch_number;
} else {
LIST_FOREACH(ilm, &ch->ch_services, ilm_in2_link) {
if (ch->ch_bouquet &&
(n = bouquet_get_channel_number(ch->ch_bouquet, (service_t *)ilm->ilm_in1)))
break;
if ((n = service_get_channel_number((service_t *)ilm->ilm_in1)))
break;
if (ch->ch_bouquet) {
LIST_FOREACH(ilm, &ch->ch_services, ilm_in2_link) {
if ((n = bouquet_get_channel_number(ch->ch_bouquet, (service_t *)ilm->ilm_in1)))
break;
}
}
if (n == 0) {
LIST_FOREACH(ilm, &ch->ch_services, ilm_in2_link) {
if ((n = service_get_channel_number((service_t *)ilm->ilm_in1)))
break;
}
}
}
if (n) {
Expand Down

0 comments on commit a88ba9d

Please sign in to comment.