Permalink
Browse files

Fixes #10054. Fixes handling of segmented SDT and PAT tables.

The code was attempting to verify if it had seen an SDT for
a given TSID before, and it inadvertantly created an empty
entry rather than just verifying it was missing.

This leads to further errors when the scanner thinks it has
an SDT for a transport when it is in fact missing it.

The same logic issue was found in the PAT handling.

Based on original patch by
Argus <pthorn-mythd at styx2002.no-ip.org>
  • Loading branch information...
1 parent 19df7fb commit 778d8111e8ffd61118cf36262eb0a1422a70ffd2 @stuarta stuarta committed Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
View
4 mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
@@ -752,7 +752,7 @@ bool ChannelScanSM::UpdateChannelInfo(bool wait_until_complete)
if (tsid_checked[tsid])
continue;
tsid_checked[tsid] = true;
- if (!currentInfo->pats[tsid].empty())
+ if (currentInfo->pats.contains(tsid))
continue;
if (!wait_until_complete || sd->HasCachedAllPAT(tsid))
@@ -805,7 +805,7 @@ bool ChannelScanSM::UpdateChannelInfo(bool wait_until_complete)
if (tsid_checked[tsid])
continue;
tsid_checked[tsid] = true;
- if (!currentInfo->sdts[tsid].empty())
+ if (currentInfo->sdts.contains(tsid))
continue;
if (!wait_until_complete || sd->HasCachedAllSDT(tsid))

0 comments on commit 778d811

Please sign in to comment.