[mythtv] Using QUERY_GETALLPENDING from a SBE

Guillaume Membré guillaume.ml at gmail.com
Sun Mar 30 22:20:02 UTC 2008


hello,

I'm trying to query the MBE from a SBE to get the next upcoming
recording. I looked the way the option --printsched works and I tried
to use Scheduler::FillRecordListFromMaster(). I also modify the method
ProgramList::FromScheduler() to force the query QUERY_GETALLPENDING
even if it is run from a SBE. It returns a good result but my SBE gets
flooded by SCHEDULE_CHANGE messages. I think they comes from the MBE
but I don't understand why such messages are sent.
I also try to use Scheduler::FillRecordList() but I think only the MBE
shoud use it as it query the database and may modify it, so I end up
to forgive this option.

Here is an output of what happens :
2008-03-31 00:09:25.447 write -> 13 1067    ANN SlaveBackend plutonium
192.168.1.2[]:[][]:[][]:[][]:[][]:[][]...
2008-03-31 00:09:25.461 read  <- 13 2       OK
2008-03-31 00:09:27.876 Connecting to backend server:
192.168.1.123:6543 (try 1 of 5)
2008-03-31 00:09:27.877 write -> 17 21      MYTH_PROTO_VERSION 40
2008-03-31 00:09:27.878 read  <- 17 13      ACCEPT[]:[]40
2008-03-31 00:09:27.879 Using protocol version 40
2008-03-31 00:09:27.879 write -> 17 23      ANN Monitor plutonium 0
2008-03-31 00:09:27.904 read  <- 17 2       OK
2008-03-31 00:09:27.905 write -> 16 23      ANN Monitor plutonium 1
2008-03-31 00:09:27.908 read  <- 16 2       OK
2008-03-31 00:09:27.908 write -> 17 19      QUERY_GETALLPENDING
2008-03-31 00:09:27.990 read  <- 17 31458   0[]:[]76[]:[]Ally
McBeal[]:[]Je le connais par coeur[]:[][]:[]s?r...
2008-03-31 00:09:29.081 read  <- 16 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.081 MythEvent: SCHEDULE_CHANGE
2008-03-31 00:09:29.081 write -> 13 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.083 read  <- 16 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.083 MythEvent: SCHEDULE_CHANGE
2008-03-31 00:09:29.084 write -> 13 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.124 read  <- 16 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.124 MythEvent: SCHEDULE_CHANGE
2008-03-31 00:09:29.124 write -> 13 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.126 read  <- 16 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.126 MythEvent: SCHEDULE_CHANGE
2008-03-31 00:09:29.127 write -> 13 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
2008-03-31 00:09:29.128 read  <- 16 45
BACKEND_MESSAGE[]:[]SCHEDULE_CHANGE[]:[]empty
and so on until I kill my SBE

My question is : how can I avoid those SCHEDULE_CHANGE messages ?

Any help is greatly appreciated.
Regards
Guillaume


More information about the mythtv-dev mailing list