summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-12-05 14:59:46 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2021-12-05 15:03:02 -0500
commit8a8dfa0e52d0d7001d52ff29a2da60986b3e5101 (patch)
tree740f08d485f100223d99f7418ecd1d4d23d39890
parent0e985a44619d44e267b3a41862d6d6918a840626 (diff)
downloadrockbox-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
-rw-r--r--apps/plugins/lua_scripts/random_playlist.lua3
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)
250 if y >= max_h then 250 if y >= max_h then
251 do_progress_header() 251 do_progress_header()
252 rb.lcd_clear_display() 252 rb.lcd_clear_display()
253 rb.yield()
253 y = h 254 y = h
254 end 255 end
255 end 256 end
@@ -402,7 +403,7 @@ function create_random_playlist(database, playlist, trackcount, play)
402 rb.splash(10, sREMOVEPLAYLIST) 403 rb.splash(10, sREMOVEPLAYLIST)
403 rb.audio("stop") 404 rb.audio("stop")
404 os.remove( playlistpath .. "/" .. playlist) 405 os.remove( playlistpath .. "/" .. playlist)
405 rb.playlist("remove_all_tracks") 406 --rb.playlist("remove_all_tracks")
406 rb.playlist("create", playlistpath .. "/", playlist) 407 rb.playlist("create", playlistpath .. "/", playlist)
407--[[ --profiling 408--[[ --profiling
408 local starttime = rb.current_tick(); 409 local starttime = rb.current_tick();