command: use show_property_osd() sub_step

Simpler and more consistent.
This commit is contained in:
wm4 2014-09-22 00:08:19 +02:00
parent c99a966251
commit 709002a3b2
1 changed files with 1 additions and 2 deletions

View File

@ -3667,8 +3667,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
if (cmd->id == MP_CMD_SUB_STEP) {
opts->sub_delay -= a[0];
osd_changed_all(mpctx->osd);
set_osd_msg(mpctx, osdl, osd_duration,
"Sub delay: %d ms", ROUND(opts->sub_delay * 1000));
show_property_osd(mpctx, "sub-delay", on_osd);
} else {
// We can easily get stuck by failing to seek to the video
// frame which actually shows the sub first (because video