From 5a83e20dac9e1ef0dc4c740da19bba757f682782 Mon Sep 17 00:00:00 2001 From: Tanguy Cano Date: Wed, 1 Apr 2026 10:23:35 +0200 Subject: [PATCH] Add threshold config options for prev_or_restart action --- src/actionhandlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actionhandlers.c b/src/actionhandlers.c index 193870d3e9..b709d1c9a9 100644 --- a/src/actionhandlers.c +++ b/src/actionhandlers.c @@ -774,7 +774,8 @@ action_prev_or_restart_cb (struct DB_plugin_action_s *action, ddb_action_context deadbeef->pl_item_unref (it); if (dur > 0) { float pos = deadbeef->streamer_get_playpos (); - if (pos > 3) { + float threshold = deadbeef->conf_get_float ("playback.prev_restart_threshold", 3); + if (pos > threshold) { deadbeef->sendmessage (DB_EV_SEEK, 0, 0, 0); return 0; }