[mythtv] Back to back recordings on the same channels fails

David Engel dlengel at attbi.com
Thu Jan 22 12:33:55 EST 2004


On Thu, Jan 22, 2004 at 05:23:12AM -0800, Bruce Markey wrote:
> If two recordings are scheduled consecutively on the same
> channel, the second will fail to record. The backend logs show
> no attempt to start the second record and the PrintList
> history has no record of the scheduled item after its starttime.

My backend is busy recording so I can't do this myself right now, but
I think the patch below should fix it.

David
-- 
David Engel
dlengel at attbi.com

Index: libs/libmythtv/programinfo.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/programinfo.cpp,v
retrieving revision 1.99
diff -u -r1.99 programinfo.cpp
--- libs/libmythtv/programinfo.cpp	20 Jan 2004 04:24:09 -0000	1.99
+++ libs/libmythtv/programinfo.cpp	22 Jan 2004 17:29:49 -0000
@@ -776,8 +776,8 @@
 bool ProgramInfo::IsSameProgramTimeslot(const ProgramInfo &other) const
 {
     if (chanid == other.chanid &&
-        startts <= other.endts &&
-        endts >= other.startts &&
+        startts < other.endts &&
+        endts > other.startts &&
         (sourceid == -1 || other.sourceid == -1 ||
          sourceid == other.sourceid))
         return true;


More information about the mythtv-dev mailing list