summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-22 14:20:00 +0200
committerwm4 <wm4@nowhere>2014-08-22 14:22:06 +0200
commit5afc025cc9c79fdee0a0aa7453971656f67ed918 (patch)
tree71e7a502f59799a93e836725b6c68644d8f88690 /player/command.c
parent7b3a889c92a1c4fd768d334fe84a84fa7a4e5149 (diff)
downloadmpv-5afc025cc9c79fdee0a0aa7453971656f67ed918.tar.bz2
mpv-5afc025cc9c79fdee0a0aa7453971656f67ed918.tar.xz
video: get rid of video_next_pts field
Not really needed anymore. Code should be mostly equivalent. Also get rid of some other now-unused or outdated things.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 761aba8fd6..bdb3cf1337 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3670,7 +3670,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
case MP_CMD_SUB_SEEK: {
struct osd_sub_state state;
osd_get_sub(mpctx->osd, OSDTYPE_SUB, &state);
- if (state.dec_sub) {
+ if (state.dec_sub && mpctx->video_pts != MP_NOPTS_VALUE) {
double a[2];
a[0] = mpctx->video_pts - state.video_offset - opts->sub_delay;
a[1] = cmd->args[0].v.i;