[mythtv-commits] Ticket #2541: mythbackend segfault when attempting to record from hdhomerun using qam256
MythTV
mythtv at cvs.mythtv.org
Sun Oct 8 19:21:29 UTC 2006
#2541: mythbackend segfault when attempting to record from hdhomerun using qam256
------------------------------+---------------------------------------------
Reporter: dab at dab-tech.com | Owner: danielk
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: medium | Resolution:
------------------------------+---------------------------------------------
Comment (by jwestfall):
There is a bug in ChannelBase::SetCachedATSCInfo().
{{{
int chansep = chan.find("_");
...
currentATSCMinorChannel = chan.right(chan.length()-chansep-1).toInt();
currentATSCMajorChannel = chan.left(chansep).toInt();
}}}
The value passed to right() will be bogus if the number of digits before
and after the _ isnt the same.
The logs show its passing 58_0, which make it chan.right(4 - 2 - 1 = 1, or
"8_0") which results in currentATSCMinorChannel becoming -1. same thing
happens with currentProgramNum. Fix would seem to be making it
chan.right(chansep+1), but I have no way to test.
It doesnt seem this will fix the crash since
TVRec::SetupDTVSignalMonitor() is wanting an atsc minor > 0
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2541#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list