[mythtv-firehose] mythtv branch master updated by gigem. v0.27-pre2-1253-ga2eb931

Git Repo Owner noreply at mythtv.org
Tue Jun 4 21:40:00 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user gigem.
       via  a2eb931221b0d1fac76da884e779e1120b8a2b81 (commit)
       via  f455e491239cc128200db85c90dcab7ea15044c3 (commit)
       via  aafa07e9e314793990e7f58f30bfb6199a430978 (commit)
      from  b578a5e6444ee5d04c00387d233ab79ddba691a3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a2eb931221b0d1fac76da884e779e1120b8a2b81
Author:    David Engel <dengel at mythtv.org> at Tue, 4 Jun 2013 16:33:13 -0500
Committer: David Engel <dengel at mythtv.org> at Tue, 4 Jun 2013 16:39:52 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=a2eb931221b0d1fac76da884e779e1120b8a2b81

Refactor timing/sleep handling in the scheduler.
The first main change is to use HandleRecordiing() and HandleTuning()
to set the sleep time.  The previous code used mostly duplicate code
in CalcTimeToNextHandleRecordingEvent().  That meant there were two
places that needed to be checked/kept in sync when analyzing/fixing
timing issues.

The next main change is to sleep as long as possible.  The previous
code would never sleep for longer than 60 seconds, even if it had
nothing to do.

The last main change is to be more persistent in tyring to apply long
preroll when the tuner is initially busy.  The previous code didn't
specifically try to do this and it was hit and miss whether or not
preroll was used in these situations.

The rest is various stylistic changes.

Fixes #11108



commit f455e491239cc128200db85c90dcab7ea15044c3
Author:    David Engel <dengel at mythtv.org> at Tue, 4 Jun 2013 11:44:51 -0500
Committer: David Engel <dengel at mythtv.org> at Tue, 4 Jun 2013 16:39:52 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=f455e491239cc128200db85c90dcab7ea15044c3

Don't skip over recordings that are still tuning.
Fix a bug where the scheduler sometimes skips over recordings in the
rsTuning state.  This doesn't matter normally as the recording usually
transitiions to the rsRecording state quickly.  When there is a tuning
problem, however, this bug defeats the tuning timeout check in the
scheduler and the recording gets stuck in the tuning state.  This fix
makes sure the tuning check is always done.



commit aafa07e9e314793990e7f58f30bfb6199a430978
Author:    David Engel <dengel at mythtv.org> at Tue, 4 Jun 2013 10:55:22 -0500
Committer: David Engel <dengel at mythtv.org> at Tue, 4 Jun 2013 16:39:52 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=aafa07e9e314793990e7f58f30bfb6199a430978

Mostly revert 788bc510.  It's not needed and created a new bug.
That change was intended to fix a deadlock.  In reality, it only
worked around the deadlock and added a race condition that could cause
delayed handling of reschedule requests.  It was a series of later
changes that actually fixed the deadlocks, so this fix can be fixed by
reverting it.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/programs/mythbackend/scheduler.cpp |  334 +++++++++++++----------------
 mythtv/programs/mythbackend/scheduler.h   |   34 +--
 2 files changed, 163 insertions(+), 205 deletions(-)

-- 



More information about the mythtv-firehose mailing list