Ticket #8429: mythtv.SchedOpenEnd-allchan.patch

File mythtv.SchedOpenEnd-allchan.patch, 2.2 KB (added by James Hook <mythtv.hook@…>, 11 years ago)

SchedOpenEnd? for current channel patch (svn #23865)

  • mythtv/programs/mythbackend/scheduler.cpp

     
    827827    const RecList     &cardlist,
    828828    const RecordingInfo *p,
    829829    RecConstIter      &j,
    830     bool               openEnd) const
     830    int               openEnd) const
    831831{
    832832    bool is_conflict_dbg = false;
    833833
     
    853853            continue;
    854854        }
    855855
    856         if (openEnd && p->chanid != q->chanid)
     856        // H O O K: Should change openEnd to be a number to indicate off, different channel, or any back to back
     857        if ((openEnd == 1 && p->chanid != q->chanid) || openEnd == 2)
    857858        {
    858859            if (p->recendts < q->recstartts || p->recstartts > q->recendts)
    859860            {
     
    905906const RecordingInfo *Scheduler::FindConflict(
    906907    const QMap<int, RecList> &reclists,
    907908    const RecordingInfo        *p,
    908     bool openend) const
     909    int openend) const
    909910{
    910911    bool is_conflict_dbg = false;
    911912
     
    11221123{
    11231124    VERBOSE(VB_SCHEDULE, "Scheduling:");
    11241125
    1125     bool openEnd = (bool)gContext->GetNumSetting("SchedOpenEnd", 0);
     1126    int openEnd = gContext->GetNumSetting("SchedOpenEnd", 0);
    11261127
    11271128    RecIter i = worklist.begin();
    11281129    while (i != worklist.end())
  • mythtv/programs/mythbackend/scheduler.h

     
    114114
    115115    bool FindNextConflict(const RecList &cardlist,
    116116                          const RecordingInfo *p, RecConstIter &iter,
    117                           bool openEnd = false) const;
     117                          int openEnd = 0) const;
    118118    const RecordingInfo *FindConflict(const QMap<int, RecList> &reclists,
    119                                     const RecordingInfo *p, bool openEnd = false) const;
     119                                    const RecordingInfo *p, int openEnd = 0) const;
    120120    void MarkOtherShowings(RecordingInfo *p);
    121121    void MarkShowingsList(RecList &showinglist, RecordingInfo *p);
    122122    void BackupRecStatus(void);