set lower prio on transport if it is scrambled
This commit is contained in:
parent
f5d95e9d76
commit
ef4b612cde
1 changed files with 5 additions and 1 deletions
6
dvb.c
6
dvb.c
|
@ -389,7 +389,6 @@ dvb_find_transport(th_dvb_mux_instance_t *tdmi, uint16_t tid,
|
|||
t->tht_stop_feed = dvb_stop_feed;
|
||||
t->tht_dvb_mux = tdm;
|
||||
|
||||
t->tht_prio = 50;
|
||||
snprintf(tmp, sizeof(tmp), "%s:%04x:%04x", tdm->tdm_name, tid, sid);
|
||||
|
||||
free((void *)t->tht_uniquename);
|
||||
|
@ -852,6 +851,11 @@ dvb_sdt_callback(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
|
|||
/* Not yet mapped to a channel */
|
||||
if(LIST_FIRST(&t->tht_streams) != NULL) {
|
||||
/* We have streams, map it */
|
||||
if(t->tht_scrambled)
|
||||
t->tht_prio = 75;
|
||||
else
|
||||
t->tht_prio = 25;
|
||||
|
||||
transport_set_channel(t, channel_find(chname, 1, NULL));
|
||||
} else {
|
||||
if(t->tht_pmt_seen == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue