mpegts: ensure fe type is set before normal config load
If we don't do this some checks (such as network type on set) will fail as the fe type may not be set before setting the network.
This commit is contained in:
parent
fa8222a573
commit
0b088cb4dd
1 changed files with 2 additions and 4 deletions
|
@ -845,11 +845,9 @@ linuxdvb_frontend_create0
|
|||
return NULL;
|
||||
}
|
||||
|
||||
linuxdvb_frontend_t *lfe
|
||||
= (linuxdvb_frontend_t*)
|
||||
mpegts_input_create0(calloc(1, sizeof(linuxdvb_frontend_t)),
|
||||
idc, uuid, conf);
|
||||
linuxdvb_frontend_t *lfe = calloc(1, sizeof(linuxdvb_frontend_t));
|
||||
lfe->lfe_info.type = type;
|
||||
lfe = (linuxdvb_frontend_t*)mpegts_input_create0((mpegts_input_t*)lfe, idc, uuid, conf);
|
||||
|
||||
/* Input callbacks */
|
||||
lfe->mi_is_enabled = linuxdvb_frontend_is_enabled;
|
||||
|
|
Loading…
Add table
Reference in a new issue