[mythtv] [mythtv-commits] Ticket #866: Record in LiveTV doesn't work if you leave LiveTV.

Bruce Markey bjm at lvcm.com
Tue Jan 10 01:46:13 UTC 2006

MythTV wrote:
> #866: Record in LiveTV doesn't work if you leave LiveTV.
> ----------------------------------------------+-----------------------------
>  Reporter:  adrian.wilkins at spamoff.gmail.com  |        Owner:  danielk 
>      Type:  defect                            |       Status:  assigned
>  Priority:  major                             |    Milestone:  0.19    
> Component:  mythtv                            |      Version:  head    
>  Severity:  medium                            |   Resolution:          
> ----------------------------------------------+-----------------------------
> Comment (by danielk):
>  I've updated the patch with a new function
>  TVRec::NotifySchedulerOfRecording() which does basically what Bruce
>  described on the mailing list to add the recording to the scheduler.
>  I haven't exhaustively tested this yet, but in a few informal tests it
>  appears to work as intended.

Initial sanity check looks good. I'll start looking for border
cases and such but one quick observation.

I was surprised that the mythbackend -v record,schedule didn't
log anything when I pressed "R" but then when I hit ESC:

2006-01-09 16:34:29.732 StopLiveTV(void) curRec: 0xad5ec740 pseudoRec: 0
2006-01-09 16:34:29.880 SCHEDULER_ADD_RECORDING message

Kudos for making it promote to a scheduled recording at the time
of exiting the live player. However, unless there is some issue
that requires that it must be delayed, this should probably happen
ASAP at the time of TOGGLERECORD. This card and input will be busy
and this should be reflected on the conflicts page of another
frontend, "Preview schedule changes", --printsched, etc. I stayed
in the player until the show ended and it worked but there was
no record rule saved for the sake of transcode, jobs.

Also, gigem hinted at something that I neglected. The recordid
should also be updated in the recorded table.

--  bjm

Update: Enter live TV and press "R". Start another mythfrontend
or mythweb session. Go to the EPG. Single record any other show
in progress. At this point, the card/input have not been reserved
yet by the scheduler. Things are confused and not worth describing.
I guess it has to update when R is pressed.

More information about the mythtv-dev mailing list