From 93c7403f077f816640325c0ba137ea78d20ace35 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 28 Jun 2014 09:02:09 +0200 Subject: [PATCH] epg: allow to disable the EPG scan (tune) per mux --- src/input/mpegts.h | 1 + src/input/mpegts/mpegts_mux.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/input/mpegts.h b/src/input/mpegts.h index 23b0b3d7..c528c616 100644 --- a/src/input/mpegts.h +++ b/src/input/mpegts.h @@ -384,6 +384,7 @@ struct mpegts_mux */ char *mm_crid_authority; int mm_enabled; + int mm_epg; char *mm_charset; }; diff --git a/src/input/mpegts/mpegts_mux.c b/src/input/mpegts/mpegts_mux.c index ad956b73..429584e3 100644 --- a/src/input/mpegts/mpegts_mux.c +++ b/src/input/mpegts/mpegts_mux.c @@ -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;