Skip to content

Commit 415e7c9

Browse files
actionhandlers: increase interval of prev_or_restart action to 10 seconds
1 parent a1a8fed commit 415e7c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/actionhandlers.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "gettext.h"
2929
#include <deadbeef/deadbeef.h>
3030

31+
#define RESTART_ON_PREV_INTERVAL 10.f
32+
3133
extern DB_functions_t *deadbeef;
3234

3335
int
@@ -774,7 +776,7 @@ action_prev_or_restart_cb (struct DB_plugin_action_s *action, ddb_action_context
774776
deadbeef->pl_item_unref (it);
775777
if (dur > 0) {
776778
float pos = deadbeef->streamer_get_playpos ();
777-
if (pos > 3) {
779+
if (pos > RESTART_ON_PREV_INTERVAL) {
778780
deadbeef->sendmessage (DB_EV_SEEK, 0, 0, 0);
779781
return 0;
780782
}

0 commit comments

Comments
 (0)