From: Jaroslav Kysela Date: Sun, 18 Oct 2015 19:15:27 +0000 (+0200) Subject: dvbpsi: move the PMT A/V check to the proper place X-Git-Tag: v4.2.1~1878 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52d02a202e2080931b379e8eb8d094ae8198d012;p=thirdparty%2Ftvheadend.git dvbpsi: move the PMT A/V check to the proper place --- diff --git a/src/input/mpegts/dvb_psi.c b/src/input/mpegts/dvb_psi.c index e0d5e6967..91382917f 100644 --- a/src/input/mpegts/dvb_psi.c +++ b/src/input/mpegts/dvb_psi.c @@ -2352,14 +2352,14 @@ psi_parse_pmt // notify descrambler that we found another CAIDs if (update & PMT_UPDATE_NEW_CAID) descrambler_caid_changed((service_t *)t); + } - if (service_has_audio_or_video((service_t *)t)) { - t->s_dvb_check_seen = dispatch_clock; - if (!t->s_enabled && t->s_auto == SERVICE_AUTO_PAT_MISSING) { - tvhinfo("mpegts", "enabling service %s [sid %04X/%d] (found in PAT and PMT)", - t->s_nicename, t->s_dvb_service_id, t->s_dvb_service_id); - service_set_enabled((service_t *)t, 1, SERVICE_AUTO_NORMAL); - } + if (service_has_audio_or_video((service_t *)t)) { + t->s_dvb_check_seen = dispatch_clock; + if (!t->s_enabled && t->s_auto == SERVICE_AUTO_PAT_MISSING) { + tvhinfo("mpegts", "enabling service %s [sid %04X/%d] (found in PAT and PMT)", + t->s_nicename, t->s_dvb_service_id, t->s_dvb_service_id); + service_set_enabled((service_t *)t, 1, SERVICE_AUTO_NORMAL); } } return ret;