mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
playlist_set_current: Fix outdated dircache filerefs
Entries from a previously playing playlist may not have been replaced after selecting a track from a different playlist in the Playlist Viewer when playback was stopped (not paused), since the index buffer of a playlist opened in the Playlist Viewer is shared with the current playlist when nothing is playing. Change-Id: I939e302c73cabd0e9d969550143635e54db32bf0
This commit is contained in:
parent
1651254ba4
commit
45746934c4
1 changed files with 1 additions and 3 deletions
|
|
@ -3509,11 +3509,9 @@ int playlist_set_current(struct playlist_info* playlist)
|
|||
current_playlist.dirlen = playlist->dirlen;
|
||||
|
||||
if (playlist->indices && playlist->indices != current_playlist.indices)
|
||||
{
|
||||
memcpy((void*)current_playlist.indices, (void*)playlist->indices,
|
||||
playlist->max_playlist_size*sizeof(*playlist->indices));
|
||||
dc_init_filerefs(¤t_playlist, 0, current_playlist.max_playlist_size);
|
||||
}
|
||||
dc_init_filerefs(¤t_playlist, 0, current_playlist.max_playlist_size);
|
||||
|
||||
current_playlist.first_index = playlist->first_index;
|
||||
current_playlist.amount = playlist->amount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue