mpegts: added scan q length field to UI
This commit is contained in:
parent
68487e3735
commit
7e565bc61e
2 changed files with 24 additions and 0 deletions
|
@ -453,6 +453,7 @@ mpegts_mux_initial_scan_done ( mpegts_mux_t *mm )
|
|||
mm->mm_initial_scan_done = 1;
|
||||
mm->mm_config_save(mm);
|
||||
idnode_updated(&mm->mm_id);
|
||||
idnode_updated(&mm->mm_network->mn_id);
|
||||
}
|
||||
|
||||
/* **************************************************************************
|
||||
|
|
|
@ -63,6 +63,22 @@ mpegts_network_class_get_num_svc ( void *ptr )
|
|||
return &n;
|
||||
}
|
||||
|
||||
static const void *
|
||||
mpegts_network_class_get_scanq_length ( void *ptr )
|
||||
{
|
||||
static int n;
|
||||
mpegts_mux_t *mm;
|
||||
mpegts_network_t *mn = ptr;
|
||||
|
||||
n = 0;
|
||||
TAILQ_FOREACH(mm, &mn->mn_initial_scan_pending_queue, mm_initial_scan_link)
|
||||
n++;
|
||||
TAILQ_FOREACH(mm, &mn->mn_initial_scan_current_queue, mm_initial_scan_link)
|
||||
n++;
|
||||
|
||||
return &n;
|
||||
}
|
||||
|
||||
const idclass_t mpegts_network_class =
|
||||
{
|
||||
.ic_class = "mpegts_network",
|
||||
|
@ -107,6 +123,13 @@ const idclass_t mpegts_network_class =
|
|||
.opts = PO_RDONLY | PO_NOSAVE,
|
||||
.get = mpegts_network_class_get_num_svc,
|
||||
},
|
||||
{
|
||||
.type = PT_INT,
|
||||
.id = "scanq_length",
|
||||
.name = "Scan Q length",
|
||||
.opts = PO_RDONLY | PO_NOSAVE,
|
||||
.get = mpegts_network_class_get_scanq_length,
|
||||
},
|
||||
{}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue