summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-02-01 01:37:31 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-02-01 01:37:31 (GMT)
commit48590321e09bd2c6473040caa0a695d7453c215f (patch)
treefd607abf97d20965b37987f74d2da92882253bc1
parenta9b25430bbe9aaac630de232dd75d45217b802c5 (diff)
Skip past the initial cut area when starting playback.
Patch from billstuff2001 at sbcglobal dot net Closes #9538
-rw-r--r--mythtv/libs/libmythtv/mythplayer.cpp2
-rw-r--r--mythtv/libs/libmythtv/mythplayer.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index e5dab68..77d9f42 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -998,7 +998,9 @@ int MythPlayer::OpenFile(uint retries, bool allow_libmpeg2)
deleteMap.TrackerReset(0, totalFrames);
}
+ // Determine the initial bookmark and update it for the cutlist
bookmarkseek = GetBookmark();
+ deleteMap.TrackerWantsToJump(bookmarkseek, totalFrames, bookmarkseek);
if (player_ctx->playingInfo->QueryAutoExpire() == kLiveTVAutoExpire)
gCoreContext->SaveSetting("DefaultChanid",
diff --git a/mythtv/libs/libmythtv/mythplayer.h b/mythtv/libs/libmythtv/mythplayer.h
index 6237389..447cdc2 100644
--- a/mythtv/libs/libmythtv/mythplayer.h
+++ b/mythtv/libs/libmythtv/mythplayer.h
@@ -570,7 +570,7 @@ class MPUBLIC MythPlayer
int jumpchapter;
// Bookmark stuff
- long long bookmarkseek;
+ uint64_t bookmarkseek;
// Seek
/// If fftime>0, number of frames to seek forward.