summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/main.c b/main.c
index d1785f9f..f5a85a65 100644
--- a/main.c
+++ b/main.c
@@ -30,12 +30,6 @@ psdl_thread (uintptr_t ctx) {
case M_SONGCHANGED:
gtkps_songchanged (p1, p2);
break;
- case M_SONGFINISHED:
- // play next song in playlists
- GDK_THREADS_ENTER();
- gtkps_nextsong ();
- GDK_THREADS_LEAVE();
- break;
case M_PLAYSONG:
GDK_THREADS_ENTER();
gtkps_playsong ();
@@ -53,12 +47,14 @@ psdl_thread (uintptr_t ctx) {
break;
case M_NEXTSONG:
GDK_THREADS_ENTER();
- gtkps_nextsong ();
+ p_stop ();
+ ps_nextsong ();
GDK_THREADS_LEAVE();
break;
case M_PREVSONG:
GDK_THREADS_ENTER();
- gtkps_prevsong ();
+ p_stop ();
+ ps_prevsong ();
GDK_THREADS_LEAVE();
break;
case M_PAUSESONG: