]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: fix the adapter active flag, fixes #4452
authorJaroslav Kysela <perex@perex.cz>
Tue, 20 Jun 2017 15:00:48 +0000 (17:00 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 20 Jun 2017 15:00:48 +0000 (17:00 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c
src/input/mpegts/mpegts_input.c

index 0cbec5ce4245d607dcb24e78b4117e6fb3665c16..8d0f49ba0617359a8b0b31eb06a1f02e3a920907 100644 (file)
@@ -83,13 +83,6 @@ const idclass_t linuxdvb_frontend_class =
   .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",
index 175a27aa11591a2b5ab7b14f694651c8faab1398..6afd06277d4f309fd5b163837271cdb611cc0985 100644 (file)
@@ -71,7 +71,7 @@ mpegts_input_class_active_get ( void *obj )
 {
   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;
 }