epg: allow to disable the EPG scan (tune) per mux
This commit is contained in:
parent
fd0d9931dd
commit
93c7403f07
2 changed files with 12 additions and 0 deletions
|
@ -384,6 +384,7 @@ struct mpegts_mux
|
|||
*/
|
||||
char *mm_crid_authority;
|
||||
int mm_enabled;
|
||||
int mm_epg;
|
||||
char *mm_charset;
|
||||
};
|
||||
|
||||
|
|
|
@ -310,6 +310,13 @@ const idclass_t mpegts_mux_class =
|
|||
.def.i = 1,
|
||||
.notify = mpegts_mux_class_enabled_notify,
|
||||
},
|
||||
{
|
||||
.type = PT_BOOL,
|
||||
.id = "epg",
|
||||
.name = "EPG",
|
||||
.off = offsetof(mpegts_mux_t, mm_epg),
|
||||
.def.i = 1,
|
||||
},
|
||||
{
|
||||
.type = PT_STR,
|
||||
.id = "network",
|
||||
|
@ -446,6 +453,9 @@ mpegts_mux_is_epg ( mpegts_mux_t *mm )
|
|||
|
||||
lock_assert(&global_lock);
|
||||
|
||||
if (!mm->mm_epg)
|
||||
return 0;
|
||||
|
||||
LIST_FOREACH(s, &mm->mm_services, s_dvb_mux_link)
|
||||
if (LIST_FIRST(&s->s_channels))
|
||||
break;
|
||||
|
@ -833,6 +843,7 @@ mpegts_mux_create0
|
|||
|
||||
/* Enabled by default */
|
||||
mm->mm_enabled = 1;
|
||||
mm->mm_epg = 1;
|
||||
|
||||
/* Identification */
|
||||
mm->mm_onid = onid;
|
||||
|
|
Loading…
Add table
Reference in a new issue