From 4e5c12ef94af819e1e74fc73f711c9670f1f0614 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 13 Jul 2013 20:06:07 +0100 Subject: [PATCH] capmt: properly check if input is enabled or not --- src/descrambler/capmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index a3b0dabc..e045cc11 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -584,8 +584,8 @@ capmt_thread(void *aux) idnode_set_t *is = idnode_find_all(&linuxdvb_adapter_class); for (i = 0; i < is->is_count; i++) { la = (linuxdvb_adapter_t*)is->is_array[i]; - if (!la->mi_enabled) continue; - if (!la->la_rootpath) continue; + if (!la || !la->mi_is_enabled) continue; + if (!la->mi_is_enabled((mpegts_input_t*)la)) continue; if (la->la_number > MAX_CA) { tvhlog(LOG_ERR, "capmt", "adapter number > MAX_CA"); continue;