summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-01 00:28:09 +0100
committerwm4 <wm4@nowhere>2020-03-01 00:28:09 +0100
commitae1aeab7aa2b7c378a9f734d227121f84ae85ed2 (patch)
treed5bd99fc37ede2a0c6c28a11eb14b1b8347b9a88 /player/playloop.c
parentb31a5e3a580c3245433a59767921e6766a302e8b (diff)
downloadmpv-ae1aeab7aa2b7c378a9f734d227121f84ae85ed2.tar.bz2
mpv-ae1aeab7aa2b7c378a9f734d227121f84ae85ed2.tar.xz
options: make decoder options local to decoder wrapper
Instead of having f_decoder_wrapper create its own copy of the entire mpv option tree, create a struct local to that file and move all used options to there. movie_aspect is used by the "video-aspect" deprecated property code. I think it's probably better not to remove the property yet, but fortunately it's easy to work around without needing special handling for this option or so. correct_pts is used to prevent use of hr-seek in playloop.c. Ignore that, if you use --no-correct-pts you're asking for trouble anyway. This is the only behavior change.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 113feea770..6fcd986ebd 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -289,8 +289,7 @@ static void mp_seek(MPContext *mpctx, struct seek_params seek)
double demux_pts = seek_pts;
- bool hr_seek = (opts->correct_pts && seek.exact != MPSEEK_KEYFRAME &&
- seek_pts != MP_NOPTS_VALUE) &&
+ bool hr_seek = seek.exact != MPSEEK_KEYFRAME && seek_pts != MP_NOPTS_VALUE &&
(seek.exact >= MPSEEK_EXACT || opts->hr_seek == 1 ||
(opts->hr_seek >= 0 && seek.type == MPSEEK_ABSOLUTE) ||
(opts->hr_seek == 2 && (!mpctx->vo_chain || mpctx->vo_chain->is_sparse)));