diff options
author | waker <wakeroid@gmail.com> | 2009-07-06 00:18:15 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-07-06 00:18:15 +0200 |
commit | 7577bbb5102f6fd32ed173a3daa18cb08a408b74 (patch) | |
tree | 48b7fa1c1b71d8b9fec6e8c3f1e5f6c4e783acbb /main.c | |
parent | 94410f8ff88d517ace0ad70d389c75010f8110f8 (diff) |
very slow and bad seeking support
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |