[mythtv-commits] mythtv branch master updated by stuartm. v0.27-pre2-462-g414de88

Git Repo Owner noreply at mythtv.org
Sat Dec 29 22:15:46 UTC 2012


The branch, master has been updated on the
mythtv repository by gitolite user stuartm.
       via  414de880b9d65263849e2339df9e083df0301033 (commit)
      from  c5a4229401b2c224640cda2a31e9339fcd8157de (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 414de880b9d65263849e2339df9e083df0301033
Author:    Richard <peper03 at yahoo.com> at Sat, 29 Dec 2012 22:13:01 +0000
Committer: Stuart Morgan <smorgan at mythtv.org> at Sat, 29 Dec 2012 22:15:08 +0000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=414de880b9d65263849e2339df9e083df0301033

Simplify DVD startup to improve playback reliability
The startup code for DVD playback jumps around somewhat trying to find
a playable title, which is then used to create audio/video decoders
before playback is restarted at firstplay.

This doesn't always work as it can leave the DVDs VM in an
inconsistent state and, depending on the DVD, looks ugly as playback
starts and then restarts or appears to jump somewhere else after a
couple of seconds. Because the VM can be left in an inconsistent
state, menu navigation/selection issues can arise, which can make it
difficult to start playback.

The attached patch attempts to clean up the startup code. The
DVDRingBuffer no longer tries to find a playable title in OpenFile?,
but rather just lets the VM get on with playback. AVFormatDecoder no
longer processes the initial frames more than is required to create
decoders. Once this has been achieved, any cached data is flushed
before jumping back to 'firstplay' (and cleanly resetting the VM). By
not displaying the initial frames used to determine the decoders and
flushing the cached data, the ugly jump at the start of some DVDs is
no longer visible.

Fixes #11288

Signed-off-by: Stuart Morgan <smorgan at mythtv.org>



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

Summary of changes:
 mythtv/libs/libmythtv/DVD/avformatdecoderdvd.cpp |    6 +++
 mythtv/libs/libmythtv/DVD/avformatdecoderdvd.h   |    1 +
 mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp      |   50 +---------------------
 mythtv/libs/libmythtv/avformatdecoder.cpp        |   39 +++++++++++++----
 mythtv/libs/libmythtv/avformatdecoder.h          |    1 +
 5 files changed, 38 insertions(+), 59 deletions(-)

-- 



More information about the mythtv-commits mailing list