Skip to content

Commit

Permalink
Remove test on PID before adding to list
Browse files Browse the repository at this point in the history
Remove the test on the PID value not equal to 0 before adding the PID to the list of PIDS to listen to.
The comment indicates that the intention was to prevent adding the PID of program 0 to the list but the code does not match the comment.
The PID of program 0, when present in the PAT, is used to specify the PID of the NIT when it is not on the default PID.
  • Loading branch information
kmdewaal committed Aug 29, 2020
1 parent cf8015e commit a0ba072
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
Expand Up @@ -387,8 +387,7 @@ void ChannelScanSM::HandlePAT(const ProgramAssociationTable *pat)
ScanStreamData *sd = GetDTVSignalMonitor()->GetScanStreamData();
for (uint i = 0; i < pat->ProgramCount(); ++i)
{
if (pat->ProgramPID(i)) // don't add NIT "program", MPEG/ATSC safe.
sd->AddListeningPID(pat->ProgramPID(i));
sd->AddListeningPID(pat->ProgramPID(i));
}
}

Expand Down

0 comments on commit a0ba072

Please sign in to comment.