Navigation Menu

Skip to content

Commit

Permalink
Fix the scheduler to not write incorrect oldrecorded entries.
Browse files Browse the repository at this point in the history
Don't modify the recording status of programs that aren't eligible to
be rescheduled.  Previously, the scheduler properly ignored most
status changes caused by this oversight.  The improved missed
recording detection changed that and allowed some status changes to
get rewritten to oldrecorded.  In the particular case of stopping or
deleting an in-progress recording, the status could change from
rsRecorded and affect future duplicate detection.
  • Loading branch information
gigem committed Feb 26, 2012
1 parent 5d5aef3 commit 0a301c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -3905,7 +3905,13 @@ void Scheduler::AddNewRecords(void)
if (p == NULL)
continue;

RecStatusType newrecstatus = p->GetRecordingStatus();
if (p->GetRecordingStatus() != rsUnknown)
{
tmpList.push_back(p);
continue;
}

RecStatusType newrecstatus = rsUnknown;
// Check for rsOffLine
if ((doRun || specsched) &&
(!cardMap.contains(p->GetCardID()) || !p->GetRecordingPriority2()))
Expand Down

0 comments on commit 0a301c0

Please sign in to comment.