IPTV: Add priority value also for muxes
This commit is contained in:
parent
2088863800
commit
d77ec6c317
4 changed files with 12 additions and 2 deletions
|
@ -52,7 +52,8 @@
|
|||
<dt>ATSC
|
||||
<dd>whether or not this is an ATSC IPTV source.
|
||||
|
||||
|
||||
<dt>Priority
|
||||
<dd>IPTV : The mux priority value (higher value = higher priority to use services from this mux). Value 0 means use the IPTV network priority value.
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
@ -174,7 +174,7 @@ iptv_input_get_priority ( mpegts_input_t *mi, mpegts_mux_t *mm )
|
|||
{
|
||||
iptv_mux_t *im = (iptv_mux_t *)mm;
|
||||
iptv_network_t *in = (iptv_network_t *)im->mm_network;
|
||||
return in->in_priority;
|
||||
return im->mm_iptv_priority > 0 ? im->mm_iptv_priority : in->in_priority;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
@ -80,6 +80,14 @@ const idclass_t iptv_mux_class =
|
|||
.ic_class = "iptv_mux",
|
||||
.ic_caption = "IPTV Multiplex",
|
||||
.ic_properties = (const property_t[]){
|
||||
{
|
||||
.type = PT_INT,
|
||||
.id = "priority",
|
||||
.name = "Priority",
|
||||
.off = offsetof(iptv_mux_t, mm_iptv_priority),
|
||||
.def.i = 0,
|
||||
.opts = PO_ADVANCED
|
||||
},
|
||||
{
|
||||
.type = PT_STR,
|
||||
.id = "iptv_url",
|
||||
|
|
|
@ -77,6 +77,7 @@ struct iptv_mux
|
|||
{
|
||||
mpegts_mux_t;
|
||||
|
||||
int mm_iptv_priority;
|
||||
int mm_iptv_fd;
|
||||
udp_connection_t *mm_iptv_connection;
|
||||
char *mm_iptv_url;
|
||||
|
|
Loading…
Add table
Reference in a new issue