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; }