player/command: fix repeatable frame stepping with the seek argument

730062b510 fixed the problem with mouse
buttons but unfortunately we forgot to include repeated commands in the
condition. This effectively made any variant of "frame-step X seek"
unrepeatable even though it was supposed to be. So just allow those in
add_step_frame too.

Fixes #17348.
This commit is contained in:
Dudemanguy
2026-01-31 01:20:14 +00:00
parent 01cb6433c0
commit ee843f4db7
+2 -2
View File
@@ -5888,8 +5888,8 @@ static void cmd_frame_step(void *p)
if (flags == 1) {
// frame-step command has on_updown set so it is called on both down
// and up, but stepping should only be triggered when it matches the
// emit_on_up flag.
if (cmd->cmd->is_up == cmd->cmd->emit_on_up)
// emit_on_up flag or if the command is repeated.
if (cmd->cmd->repeated || cmd->cmd->is_up == cmd->cmd->emit_on_up)
add_step_frame(mpctx, frames, true);
} else {
if (cmd->cmd->is_up) {