[mythtv] confusing conditional

Daniel Kristjansson danielk at cuymedia.net
Wed Feb 16 06:25:59 UTC 2011


On Thu, 2011-02-10 at 10:27 -0800, Erik Hovland wrote:
> Anyone have any idea how this condition works. This is in
> mythtv/libs/libmythtv/cc608decoder.cpp, in the member function
> CC608Decoder::XDSDecode.
> 1096     // Supports non-interleaved XDS packet continuation by ignoring cont.
> 1097     if ((b1 < 0x0f) && (b1 > 0x0f))
> 1098         return;
> 
> My feeble understanding of math says that b1 cannot
> be both less then 0xf and greater then 0xf at the same time.

Unfortunately, I have no idea what that is supposed to do.

The only thing we use XDS data for currently is to fill in
the callsign and other basic channel info in the OSD channel
editor so that we can avoid needing to manually match up
channels in Cable TV to zap2it data. But the OSD channel
editor lost much of it's power when Zap2It.com went away
and I don't even know if it still works after the OSD
rewrite in 0.24.

-- Daniel



More information about the mythtv-dev mailing list