diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index a74cde2b23..8514be98f7 100644 --- a/player/command.c +++ b/player/command.c @@ -686,6 +686,11 @@ static int mp_property_playback_time(void *ctx, struct m_property *prop, if (!mpctx->playback_initialized) return M_PROPERTY_UNAVAILABLE; + if (action == M_PROPERTY_SET) { + double target = get_start_time(mpctx) + *(double *)arg; + queue_seek(mpctx, MPSEEK_ABSOLUTE, target, MPSEEK_DEFAULT, true); + return M_PROPERTY_OK; + } return property_time(action, arg, get_playback_time(mpctx)); } |