Skip to content

Commit

Permalink
Remove the SchedMoveHigher scheduler setting.
Browse files Browse the repository at this point in the history
This setting controls whether or not the scheduler can move a high
priority program that is already scheduled to another time, channel or
input to make room for a low priority program.  The scheduler now
always does this.  In the rare case the resulting schedule is
undesirable, overrides can be used to achieve the desired result.
  • Loading branch information
gigem committed Nov 28, 2012
1 parent 4b059d3 commit 6eaa373
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
6 changes: 1 addition & 5 deletions mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -62,7 +62,6 @@ Scheduler::Scheduler(bool runthread, QMap<int, EncoderLink *> *tvList,
m_queueLock(),
reclist_changed(false),
specsched(master_sched),
schedMoveHigher(false),
schedulingEnabled(true),
m_tvList(tvList),
m_expirer(NULL),
Expand Down Expand Up @@ -360,7 +359,6 @@ static bool comp_priority(RecordingInfo *a, RecordingInfo *b)

bool Scheduler::FillRecordList(void)
{
schedMoveHigher = (bool)gCoreContext->GetNumSetting("SchedMoveHigher");
schedTime = MythDate::current();

LOG(VB_SCHEDULE, LOG_INFO, "BuildWorkList...");
Expand Down Expand Up @@ -1365,9 +1363,7 @@ void Scheduler::MoveHigherRecords(bool move_this)
RecConstIter k = conflictlist.begin();
for ( ; FindNextConflict(conflictlist, p, k); ++k)
{
if ((p->GetRecordingPriority() < (*k)->GetRecordingPriority() &&
!schedMoveHigher && move_this) ||
!TryAnotherShowing(*k, false, !move_this))
if (!TryAnotherShowing(*k, false, !move_this))
{
RestoreRecStatus();
break;
Expand Down
1 change: 0 additions & 1 deletion mythtv/programs/mythbackend/scheduler.h
Expand Up @@ -220,7 +220,6 @@ class Scheduler : public MThread, public MythScheduler
bool reclist_changed;

bool specsched;
bool schedMoveHigher;
bool schedulingEnabled;
QMap<int, bool> schedAfterStartMap;

Expand Down
14 changes: 0 additions & 14 deletions mythtv/programs/mythfrontend/globalsettings.cpp
Expand Up @@ -2272,19 +2272,6 @@ class ChannelGroupSettings : public TriggeredConfigurationGroup

// General RecPriorities settings

static GlobalCheckBox *GRSchedMoveHigher()
{
GlobalCheckBox *bc = new GlobalCheckBox("SchedMoveHigher");
bc->setLabel(QObject::tr("Reschedule higher priorities"));
bc->setHelpText(QObject::tr("Move higher priority programs to other "
"cards and showings when resolving conflicts. This "
"can be used to record lower priority programs that "
"would otherwise not be recorded, but risks missing "
"a higher priority program if the schedule changes."));
bc->setValue(true);
return bc;
}

static GlobalComboBox *GRSchedOpenEnd()
{
GlobalComboBox *bc = new GlobalComboBox("SchedOpenEnd");
Expand Down Expand Up @@ -3462,7 +3449,6 @@ GeneralRecPrioritiesSettings::GeneralRecPrioritiesSettings()
VerticalConfigurationGroup* sched = new VerticalConfigurationGroup(false);
sched->setLabel(QObject::tr("Scheduler Options"));

sched->addChild(GRSchedMoveHigher());
sched->addChild(GRSchedOpenEnd());
sched->addChild(GRPrefInputRecPriority());
sched->addChild(GRHDTVRecPriority());
Expand Down

0 comments on commit 6eaa373

Please sign in to comment.