Skip to content

Commit

Permalink
Minor update to 8b9c595.
Browse files Browse the repository at this point in the history
Re-fix the scheduler ordering in the very rare case where a program is
being recorded multiple times on the same channel.
  • Loading branch information
gigem committed Aug 16, 2011
1 parent 8b9c595 commit 20abad4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -296,7 +296,11 @@ static bool comp_recstart(RecordingInfo *a, RecordingInfo *b)
return a->GetRecordingEndTime() < b->GetRecordingEndTime();
if (a->GetChannelSchedulingID() != b->GetChannelSchedulingID())
return a->GetChannelSchedulingID() < b->GetChannelSchedulingID();
return a->GetRecordingStatus() < b->GetRecordingStatus();
if (a->GetRecordingStatus() != b->GetRecordingStatus())
return a->GetRecordingStatus() < b->GetRecordingStatus();
if (a->GetChanNum() != b->GetChanNum())
return a->GetChanNum() < b->GetChanNum();
return a->GetChanID() < b->GetChanID();
}

static bool comp_priority(RecordingInfo *a, RecordingInfo *b)
Expand Down

0 comments on commit 20abad4

Please sign in to comment.