From 7d1d75326c7abf0ed07864bc2a67f139df781b45 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Thu, 4 Feb 2021 17:26:30 +0100 Subject: [PATCH] FIX: Implement the seek in the sdl2 module --- src/module/mpv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/module/mpv.c b/src/module/mpv.c index 762bd21f..6dc76527 100644 --- a/src/module/mpv.c +++ b/src/module/mpv.c @@ -277,8 +277,11 @@ loop: /* Can I seek? */ if (*set_seek >= 0 && *state != STATE_STOP) { + if (lmpv_set_position(ctx, *set_seek)) + LOG_DEBUG("WINDOW", "Failed to seek the mpv context to %s", set_seek); + else + LOG_DEBUG("WINDOW", "Seeking the mpv context to %s", set_seek); *set_seek = -1; - LOG_DEBUG("WINDOW", "Ignored set_seek"); } /* A loop without indentation. Ugly but better for not-really-wide screens */ -- GitLab