summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-04 22:44:18 +0100
committerwm4 <wm4@nowhere>2016-02-04 22:48:13 +0100
commit155f7fac9dd8d756656a05376da9495e1348daad (patch)
tree209db036fac1684cfc6b96ee4449255dd4e90677 /player
parent6cbd7d63902c88dc504d98f517b455d2f560f975 (diff)
downloadmpv-155f7fac9dd8d756656a05376da9495e1348daad.tar.bz2
mpv-155f7fac9dd8d756656a05376da9495e1348daad.tar.xz
sub: implement "sub-seek 0"
For bitmap subs, implement it properly. For libass, you need newest git master. Fixes #2791.
Diffstat (limited to 'player')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 52718d60ae..c95e7d1315 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4588,7 +4588,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re
// frame which actually shows the sub first (because video
// frame PTS and sub PTS rarely match exactly). Add some
// rounding for the mess of it.
- a[0] += 0.01 * (a[1] > 0 ? 1 : -1);
+ a[0] += 0.01 * (a[1] >= 0 ? 1 : -1);
mark_seek(mpctx);
queue_seek(mpctx, MPSEEK_RELATIVE, a[0], MPSEEK_EXACT, false);
set_osd_function(mpctx, (a[0] > 0) ? OSD_FFW : OSD_REW);