[mythtv-commits] mythtv branch master updated by jstichnoth. v0.28-pre-2827-gc13b836

Git Repo Owner noreply at mythtv.org
Thu Apr 16 20:56:53 UTC 2015


The branch, master has been updated on the
mythtv repository by gitolite user jstichnoth.
       via  c13b8361627f971cef10d47eb52445157f23eff6 (commit)
      from  d240539c4d8feb85cdf244fd723637fff38fa285 (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 c13b8361627f971cef10d47eb52445157f23eff6
Author:    Jim Stichnoth <jstichnoth at mythtv.org> at Thu, 16 Apr 2015 11:55:00 -0700
Committer: Jim Stichnoth <jstichnoth at mythtv.org> at Thu, 16 Apr 2015 13:12:19 -0700
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=c13b8361627f971cef10d47eb52445157f23eff6

Add utility marks for preroll amount and latest playback position.
==== Program start:

The recorder writes a mark of the new type MARK_UTIL_PROGSTART as soon
as it encounters a keyframe close to the recording's scheduled start
time.  This essentially skips past the preroll region and the "start
early" region.

The frontend starts playback from this keyframe if the user selects
Play and there is no explicit bookmark (but not if the user selects
one of the "Play from..." menu items).

==== Playback position:

During playback, a timer event auto-saves the current playback frame
with the new MARK_UTIL_LASTPLAYPOS mark type, every 30 seconds. The
actual saving is done in a background thread to avoid playback
glitches.  Saving is done only during active playback, i.e. not while
paused.  The MARK_UTIL_LASTPLAYPOS mark is tidied up (cleared) if the
user saves a bookmark while exiting playback.

The "Play from..." menu gets a new item (a new translatable string):
    Play from last played position

This item is added to the menu only when the recording markup actually
contains a MARK_UTIL_LASTPLAYPOS mark.

The motivation of MARK_UTIL_LASTPLAYPOS is that if you accidentally
exit playback without setting a bookmark (or the frontend crashes, or
the OS crashes, or ...), this allows you to resume roughly where you
left off.  Because of the 30-second timer, if you start playing
normally and realize you've made a mistake, you have 30 seconds to
exit playback and instead "Play from last played position".

Note that different frontends can fight over setting this mark, same
as with a regular bookmark.

Still to do:
1. Preview generator can do less guessing about preroll.
2. Provide MythVideo launcher with similar progstart/lastplaypos options.

Refs #11713.



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

Summary of changes:
 mythtv/libs/libmyth/programinfo.cpp              |   34 +++++++
 mythtv/libs/libmyth/programinfo.h                |   23 ++++-
 mythtv/libs/libmyth/programtypes.cpp             |    2 +
 mythtv/libs/libmyth/programtypes.h               |   12 ++-
 mythtv/libs/libmythtv/mythplayer.cpp             |   13 +++
 mythtv/libs/libmythtv/recorders/recorderbase.cpp |   94 +++++++++++++++++++-
 mythtv/libs/libmythtv/recorders/recorderbase.h   |    7 ++
 mythtv/libs/libmythtv/tv_play.cpp                |   66 +++++++++++++-
 mythtv/libs/libmythtv/tv_play.h                  |    5 +
 mythtv/programs/mythfrontend/playbackbox.cpp     |  103 +++++++++++++++++++---
 mythtv/programs/mythfrontend/playbackbox.h       |    6 ++
 11 files changed, 337 insertions(+), 28 deletions(-)

-- 



More information about the mythtv-commits mailing list