diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-03-16 15:10:54 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-03-16 15:10:54 +0100 |
commit | 36a833053b4b1d51ffe51ca75d06478819e92eeb (patch) | |
tree | 5eaf3ab1e809f7c8ceeb13832629deead6dbfc0d /pat.c | |
parent | ad35c9c2d331e8c87886ce559fe838b5ac60776b (diff) | |
download | vdr-36a833053b4b1d51ffe51ca75d06478819e92eeb.tar.gz vdr-36a833053b4b1d51ffe51ca75d06478819e92eeb.tar.bz2 |
Improved cSectionSyncer
Diffstat (limited to 'pat.c')
-rw-r--r-- | pat.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: pat.c 4.9 2020/12/18 14:51:57 kls Exp $ + * $Id: pat.c 5.1 2021/03/16 15:10:54 kls Exp $ */ #include "pat.h" @@ -424,7 +424,7 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length SI::PAT pat(Data, false); if (!pat.CheckCRCAndParse()) return; - if (sectionSyncer.Sync(pat.getVersionNumber(), pat.getSectionNumber(), pat.getLastSectionNumber())) { + if (sectionSyncer.Check(pat.getVersionNumber(), pat.getSectionNumber())) { DBGLOG("PAT %d %d -> %d %d/%d", Transponder(), patVersion, pat.getVersionNumber(), pat.getSectionNumber(), pat.getLastSectionNumber()); if (pat.getVersionNumber() != patVersion) { if (pat.getLastSectionNumber() > 0) @@ -457,7 +457,7 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length } } } - if (sectionSyncer.Complete()) { // all PAT sections done + if (sectionSyncer.Processed(pat.getSectionNumber(), pat.getLastSectionNumber())) { // all PAT sections done if (pmtPidList.Count() != pmtSidList.Count()) DBGLOG(" PAT %d: shared PMT PIDs", Transponder()); if (pmtSidList.Count() && !activePmt) |