[mythtv-commits] Ticket #3242: Scheduler fails to record programs that match multiple recording rules, depending on which rule is matched first.
MythTV
mythtv at cvs.mythtv.org
Thu Mar 29 06:01:53 UTC 2007
#3242: Scheduler fails to record programs that match multiple recording rules,
depending on which rule is matched first.
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: medium | Resolution:
-----------------------+----------------------------------------------------
Comment(by subbyz):
I have dug in and found a semi-reasonable workaround for this bug. In
scheduler.cpp's comp_overlap() function, add the following two lines
somewhere before the final line (I tested it immediately before the final
line, but it might be better to be higher in the list, like after the
title or chanid test):
if (a->recpriority != b->recpriority)
return a->recpriority > b->recpriority;
This gives a preference in the PruneOverlaps function to allocate
potential recordings to higher priority recording rules first. A better
solution would be to key off of whether the rule is actually able to
record programs, as this workaround still doesn't handle some possible
cases very well, but the necessary info for a better fix doesn't appear to
be currently available in the ProgramInfo struct. So this seemed like the
best solution without requiring fairly extensive changes.
Tested, and works ok here as long as the overlapping rules are given
different priorities, and as long as it is ok that the lower priority rule
will never be able to record a show that matches the higher priority rule.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3242#comment:1>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list