capmt: properly check if input is enabled or not
This commit is contained in:
parent
7e565bc61e
commit
4e5c12ef94
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue