Ticket #8429: mythtv.SchedOpenEnd-allchan.patch
| File mythtv.SchedOpenEnd-allchan.patch, 2.2 KB (added by , 15 years ago) |
|---|
-
mythtv/programs/mythbackend/scheduler.cpp
827 827 const RecList &cardlist, 828 828 const RecordingInfo *p, 829 829 RecConstIter &j, 830 boolopenEnd) const830 int openEnd) const 831 831 { 832 832 bool is_conflict_dbg = false; 833 833 … … 853 853 continue; 854 854 } 855 855 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) 857 858 { 858 859 if (p->recendts < q->recstartts || p->recstartts > q->recendts) 859 860 { … … 905 906 const RecordingInfo *Scheduler::FindConflict( 906 907 const QMap<int, RecList> &reclists, 907 908 const RecordingInfo *p, 908 boolopenend) const909 int openend) const 909 910 { 910 911 bool is_conflict_dbg = false; 911 912 … … 1122 1123 { 1123 1124 VERBOSE(VB_SCHEDULE, "Scheduling:"); 1124 1125 1125 bool openEnd = (bool)gContext->GetNumSetting("SchedOpenEnd", 0);1126 int openEnd = gContext->GetNumSetting("SchedOpenEnd", 0); 1126 1127 1127 1128 RecIter i = worklist.begin(); 1128 1129 while (i != worklist.end()) -
mythtv/programs/mythbackend/scheduler.h
114 114 115 115 bool FindNextConflict(const RecList &cardlist, 116 116 const RecordingInfo *p, RecConstIter &iter, 117 bool openEnd = false) const;117 int openEnd = 0) const; 118 118 const RecordingInfo *FindConflict(const QMap<int, RecList> &reclists, 119 const RecordingInfo *p, bool openEnd = false) const;119 const RecordingInfo *p, int openEnd = 0) const; 120 120 void MarkOtherShowings(RecordingInfo *p); 121 121 void MarkShowingsList(RecList &showinglist, RecordingInfo *p); 122 122 void BackupRecStatus(void);
