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:
Adam Sutton 2013-06-16 11:04:12 +01:00
parent fa8222a573
commit 0b088cb4dd

View file

@ -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;