From faffc4a53ba096d8aea3f1c729b9251ce6dba9d0 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 8 Jul 2014 20:30:07 +0200 Subject: fixed unpausing of currently paused track using "play" action --- main.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 8cc3e63a..dbaed838 100644 --- a/main.c +++ b/main.c @@ -344,7 +344,7 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi plt_add_files_end (curr_plt, 0); plt_unref (curr_plt); if (!queue) { - messagepump_push (DB_EV_PLAY_CURRENT, 0, 1, 0); + messagepump_push (DB_EV_PLAY_NUM, 0, 0, 0); return 2; // don't reload playlist at startup } } @@ -571,14 +571,7 @@ player_mainloop (void) { } break; case DB_EV_PLAY_CURRENT: - if (p1) { - output->stop (); - pl_playqueue_clear (); - streamer_set_nextsong (0, 1); - } - else { - streamer_play_current_track (); - } + streamer_play_current_track (); break; case DB_EV_PLAY_NUM: output->stop (); -- cgit v1.2.3