Skip to content

Commit

Permalink
fix toggle-pause behavior to do nothing when playback is stopped (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Jan 14, 2024
1 parent bde53ab commit 6a93ed8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 6a93ed8

Please sign in to comment.