Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Playlist Viewer: fix: deleting track starts playback

When playback was stopped (not paused), deleting
the first track of the current playlist started
playback.

Change-Id: I0bd09e1254399d003109215e4e8363a0cd045ac0

+3 -2
+3 -2
apps/playlist_viewer.c
··· 372 372 { 373 373 char *buffer, *index_buffer = NULL; 374 374 size_t buffer_size, index_buffer_size = 0; 375 - bool is_playing = audio_status() & (AUDIO_STATUS_PLAY | AUDIO_STATUS_PAUSE); 375 + bool is_playing = audio_status() & AUDIO_STATUS_PLAY; /* playing or paused */ 376 376 377 377 /* FIXME: On devices with a plugin buffer smaller than 512 KiB, the index buffer 378 378 is shared with the current playlist when playback is stopped, to enable ··· 731 731 { 732 732 struct playlist_entry *current_track = playlist_buffer_get_track(&viewer.buffer, 733 733 index); 734 - bool current_was_playing = (current_track->index == viewer.current_playing_track); 734 + bool current_was_playing = (audio_status() & AUDIO_STATUS_PLAY) && /* or paused */ 735 + (current_track->index == viewer.current_playing_track); 735 736 736 737 MENUITEM_STRINGLIST(menu_items, ID2P(LANG_PLAYLIST), NULL, 737 738 ID2P(LANG_PLAYING_NEXT), ID2P(LANG_ADD_TO_PL),