From 6a93ed8bab6f4d8609c54e58e41289c89f163fb7 Mon Sep 17 00:00:00 2001 From: Oleksiy Yakovenko Date: Sun, 14 Jan 2024 11:09:23 +0100 Subject: [PATCH] fix toggle-pause behavior to do nothing when playback is stopped (fixes #2949) --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 1181987c24..15cec6e927 100644 --- a/src/main.c +++ b/src/main.c @@ -913,8 +913,9 @@ player_mainloop (void) { } break; case DB_EV_TOGGLE_PAUSE: - if (output->state () != DDB_PLAYBACK_STATE_PLAYING) { - streamer_play_current_track (); + if (output->state () == DDB_PLAYBACK_STATE_PAUSED) { + output->unpause (); + messagepump_push (DB_EV_PAUSED, 0, 0, 0); } else { output->pause ();