.ic_doc = tvh_doc_linuxdvb_frontend_class,
.ic_changed = linuxdvb_frontend_class_changed,
.ic_properties = (const property_t[]) {
- {
- .type = PT_BOOL,
- .id = "active",
- .name = N_("Active"),
- .opts = PO_RDONLY | PO_NOSAVE | PO_NOUI,
- .get = linuxdvb_frontend_class_active_get,
- },
{
.type = PT_STR,
.id = "fe_path",
{
static int active;
mpegts_input_t *mi = obj;
- active = mi->mi_is_enabled((mpegts_input_t*)mi, NULL, 0, -1) != MI_IS_ENABLED_NEVER;
+ active = mi->mi_enabled ? 1 : 0;
return &active;
}