This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12499 - Directory playback fails after saving playlist
Attached to Project:
Rockbox
Opened by Boris Gjenero (dreamlayers) - Saturday, 31 December 2011, 06:57 GMT+2
Last edited by Boris Gjenero (dreamlayers) - Saturday, 31 December 2011, 17:53 GMT+2
Opened by Boris Gjenero (dreamlayers) - Saturday, 31 December 2011, 06:57 GMT+2
Last edited by Boris Gjenero (dreamlayers) - Saturday, 31 December 2011, 17:53 GMT+2
|
DetailsWith a real 5G iPod or sim running r31467, directory playback stops working after I save a playlist. To reproduce: play a directory, save the playlist, stop playback, and try to play a directory again. The error is "Playlist Buffer Full".
This happens because the end of playlist_save() sets playlist->buffer = NULL and playlist->buffer_size = 0. The zero buffer_size causes playlist_add() to fail near the start of the function and display that error. When the current playlist file is being overwritten, playlist_save() correctly saves and restores the values, but otherwise, the values aren't saved and they are "restored" from variable initializations at the start. My patch here solves the problem by unconditionally saving old_buffer and old_buffer_size. (Compared to conditionally restoring the values, it's simpler and it results in smaller binsize.) I removed buffer_handle saving because it's not altered in playlist_save(). The patch also initializes buffer_handle in playlist_init(). |
This task depends upon
Closed by Boris Gjenero (dreamlayers)
Saturday, 31 December 2011, 17:53 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r31481
Saturday, 31 December 2011, 17:53 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r31481