[mythtv] Duplicated system event REC_STARTED
Bryan Mayland
bmayland+mythtv at capnbry.net
Tue Feb 23 02:49:41 UTC 2010
I've noticed that the REC_STARTED system event is sent twice. This
causes problems for scripts which expect one STARTED/FINISHED pair and
not STARTED/STARTED/FINISHED.
programs/mythbackend/scheduler.cpp:Scheduler::RunScheduler()
if (is_rec)
{
UpdateNextRecord();
SendMythSystemEvent(QString("REC_STARTED CARDID %1
CHANID %2 "
"STARTTIME
%3").arg(nextRecording->cardid)
.arg(nextRecording->chanid)
.arg(nextRecording->recstartts
.toString(Qt::ISODate)));
}
libs/libmythtv/tv_rec.cpp:TVRec::StartedRecording()
SendMythSystemRecEvent("REC_STARTED", curRec);
I do not believe the first should be there. SendMythSystemRecEvent()
calls SendMythSystemEvent() with the exact same parameters, so I assume
the duplication is an oversight and the REC_STARTED event should only
fly once the TVRec actually starts recording, not when the Scheduler
wants to start a recording.
Does this need a ticket?
More information about the mythtv-dev
mailing list