summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.c b/main.c
index e13524c0..fd097d5c 100644
--- a/main.c
+++ b/main.c
@@ -10,6 +10,7 @@
#include "messagepump.h"
#include "messages.h"
#include "gtkplaylist.h"
+#include "codec.h"
GtkWidget *mainwin;
@@ -61,6 +62,13 @@ psdl_thread (uintptr_t ctx) {
gtkps_randomsong ();
GDK_THREADS_LEAVE();
break;
+ case M_SONGSEEK:
+ if (playlist_current && playlist_current->codec) {
+ psdl_pause ();
+ playlist_current->codec->seek (p1 / 1000.f);
+ psdl_unpause ();
+ }
+ break;
}
}
usleep(10);