[mythtv] Re: [mythtv-users] Cancelled Recording from Live TV Not
Rescheduled
Derek Battams
derek at battams.ca
Thu Jul 14 22:33:46 EDT 2005
Quoting Derek Battams <derek at battams.ca>:
> I have a rule for Jimmy Kimmel, but I happened to find something on
> live TV that
> caught my attention. Just before it was suppose to start recording
> Kimmel I got
> a box on the screen giving me the option to record and watch Kimmel,
> record and
> exit to menu or cancel the recording and continue to watch live tv.
> I chose to
> stay with live tv and assumed that it would reschedule Kimmel for 3am on the
> west coast feed. Instead, it cancelled the 12am recording and still has the
> 3am marked as "will be recorded at an earlier time instead." I had
> to manually
> override the 3am airing to make it record. I suspect this is a bug or if not
> then I guess it's a feature request. :-)
After tracing through the code, I've come up with the following patch (against
0.18.1) to fix the problem above:
--- mainserver.cpp.orig 2005-07-14 22:18:25.000000000 -0400
+++ mainserver.cpp 2005-07-14 21:32:17.000000000 -0400
@@ -29,6 +29,7 @@
#include "libmyth/mythcontext.h"
#include "libmyth/util.h"
#include "libmyth/mythdbcon.h"
+#include "libmythtv/scheduledrecording.h"
#include "mainserver.h"
#include "scheduler.h"
@@ -2248,6 +2249,7 @@
{
VERBOSE(VB_IMPORTANT, "Received: CANCEL_NEXT_RECORDING");
enc->CancelNextRecording();
+ ScheduledRecording::signalChange(-1);
retlist << "ok";
}
else if (command == "SPAWN_LIVETV")
Does this look to be on the right track? Unfortunately, I don't have a test
machine and I've been told in no uncertain terms that I can't 'fiddle' around
with the lone myth box connected to the tv. I was able to compile the code
cleanly, but wasn't allowed to install the new build. :-(
- Derek
More information about the mythtv-dev
mailing list