summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-30 23:26:17 +0200
committerwm4 <wm4@nowhere>2014-07-30 23:29:01 +0200
commitdacbaea1a8c4fd0a9ad32c7c9b2e5ec49016660f (patch)
tree886f83d98205c670c82a0daebf4436ea10d4d64c
parent1423bd0bfd671ffc023778839a540fffd1dd3686 (diff)
downloadmpv-dacbaea1a8c4fd0a9ad32c7c9b2e5ec49016660f.tar.bz2
mpv-dacbaea1a8c4fd0a9ad32c7c9b2e5ec49016660f.tar.xz
player: rename a variable
Make it clear that this condition happens when switching to a new timeline segment. It doesn't even need to coincide with a chapter.
-rw-r--r--player/playloop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 9e4f804bc3..90d46cc178 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -786,7 +786,7 @@ void run_playloop(struct MPContext *mpctx)
{
struct MPOpts *opts = mpctx->opts;
double endpts = get_play_end_pts(mpctx);
- bool end_is_chapter = false;
+ bool end_is_new_segment = false;
int64_t shown_vframes = mpctx->shown_vframes;
#if HAVE_ENCODING
@@ -801,8 +801,8 @@ void run_playloop(struct MPContext *mpctx)
if (mpctx->timeline) {
double end = mpctx->timeline[mpctx->timeline_part + 1].start;
if (endpts == MP_NOPTS_VALUE || end < endpts) {
+ end_is_new_segment = true;
endpts = end;
- end_is_chapter = true;
}
}
@@ -876,7 +876,7 @@ void run_playloop(struct MPContext *mpctx)
mpctx->audio_status == STATUS_EOF &&
mpctx->video_status == STATUS_EOF)
{
- if (end_is_chapter) {
+ if (end_is_new_segment) {
mp_seek(mpctx, (struct seek_params){
.type = MPSEEK_ABSOLUTE,
.amount = mpctx->timeline[mpctx->timeline_part+1].start