diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-12-05 14:59:46 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-12-05 15:03:02 -0500 |
commit | 8a8dfa0e52d0d7001d52ff29a2da60986b3e5101 (patch) | |
tree | 740f08d485f100223d99f7418ecd1d4d23d39890 /apps | |
parent | 0e985a44619d44e267b3a41862d6d6918a840626 (diff) | |
download | rockbox-8a8dfa0e52d0d7001d52ff29a2da60986b3e5101.tar.gz rockbox-8a8dfa0e52d0d7001d52ff29a2da60986b3e5101.zip |
random_playlist.lua bugfix
removing trackks after create appears to cause crashes
removing the playlist appears to be sufficient to prevent
append to the currently saved random_playlist.m3u8
added yield on screent update, since we have no sleep this could be an issue
Change-Id: If04517f852e329088e30885d964f2407a2ebf318
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lua_scripts/random_playlist.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/lua_scripts/random_playlist.lua b/apps/plugins/lua_scripts/random_playlist.lua index 6e4dbe25e2..c87b005a49 100644 --- a/apps/plugins/lua_scripts/random_playlist.lua +++ b/apps/plugins/lua_scripts/random_playlist.lua @@ -250,6 +250,7 @@ function create_random_playlist(database, playlist, trackcount, play) if y >= max_h then do_progress_header() rb.lcd_clear_display() + rb.yield() y = h end end @@ -402,7 +403,7 @@ function create_random_playlist(database, playlist, trackcount, play) rb.splash(10, sREMOVEPLAYLIST) rb.audio("stop") os.remove( playlistpath .. "/" .. playlist) - rb.playlist("remove_all_tracks") + --rb.playlist("remove_all_tracks") rb.playlist("create", playlistpath .. "/", playlist) --[[ --profiling local starttime = rb.current_tick(); |