Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvbpsi: move the PMT A/V check to the proper place
  • Loading branch information
perexg committed Oct 18, 2015
1 parent bd55042 commit 52d02a2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/input/mpegts/dvb_psi.c
Expand Up @@ -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;
Expand Down

0 comments on commit 52d02a2

Please sign in to comment.