Bug #3954 » a.patch
src/channels.c | ||
---|---|---|
702 | 702 |
} else { |
703 | 703 |
LIST_FOREACH(ilm, &ch->ch_services, ilm_in2_link) { |
704 | 704 |
if (ch->ch_bouquet && |
705 |
(n = bouquet_get_channel_number(ch->ch_bouquet, (service_t *)ilm->ilm_in1))) |
|
705 |
(n = bouquet_get_channel_number(ch->ch_bouquet, (service_t *)ilm->ilm_in1))) { |
|
706 |
tvhinfo(LS_CHANNEL, "lcn from bouquet! svc '%s'", ((service_t *)ilm->ilm_in1)->s_nicename); |
|
706 | 707 |
break; |
707 |
if ((n = service_get_channel_number((service_t *)ilm->ilm_in1))) |
|
708 |
} |
|
709 |
if ((n = service_get_channel_number((service_t *)ilm->ilm_in1))) { |
|
710 |
tvhinfo(LS_CHANNEL, "lcn from service! svc '%s'", ((service_t *)ilm->ilm_in1)->s_nicename); |
|
708 | 711 |
break; |
712 |
} |
|
709 | 713 |
} |
710 | 714 |
} |
711 | 715 |
if (n) { |
712 |
if (ch->ch_bouquet) |
|
716 |
if (ch->ch_bouquet) {
|
|
713 | 717 |
n += (int64_t)ch->ch_bouquet->bq_lcn_offset * CHANNEL_SPLIT; |
718 |
if (n && ch->ch_bouquet->bq_lcn_offset) |
|
719 |
tvhinfo(LS_CHANNEL, "added offset %d", ch->ch_bouquet->bq_lcn_offset); |
|
720 |
} |
|
714 | 721 |
return n; |
715 | 722 |
} |
716 | 723 |
return 0; |