summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-01-05 18:28:01 +0100
committerChristian Soffke <christian.soffke@gmail.com>2022-01-05 18:28:06 +0100
commit131497d78699c96c5d7b083cee4a980b090df409 (patch)
treee00d6dfd9d7b8633f20f1b088a86b4255e89ad43
parentea738e03d0b47d64efddb6ddbff0062215e9559a (diff)
downloadrockbox-131497d78699c96c5d7b083cee4a980b090df409.tar.gz
rockbox-131497d78699c96c5d7b083cee4a980b090df409.zip
PictureFlow: Don't sync playlist after every file
Since we manually do it later, syncing after every file is unnecessary and can make the audio queue overflow Change-Id: Ia7ab6ee345b25a453c56f48ed0d330b04da6da94
-rw-r--r--apps/plugins/pictureflow/pictureflow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index b1162597f2..bee1f580f7 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -3679,14 +3679,14 @@ static bool playlist_insert(int position, bool queue, bool create_new)
3679 3679
3680 if (!insert_whole_album) 3680 if (!insert_whole_album)
3681 rb->playlist_insert_track(NULL, get_track_filename(pf_tracks.sel), 3681 rb->playlist_insert_track(NULL, get_track_filename(pf_tracks.sel),
3682 position, queue, true); 3682 position, queue, false);
3683 else 3683 else
3684 { 3684 {
3685 int i = 0; 3685 int i = 0;
3686 do { 3686 do {
3687 rb->yield(); 3687 rb->yield();
3688 if (rb->playlist_insert_track(NULL, get_track_filename(i), 3688 if (rb->playlist_insert_track(NULL, get_track_filename(i),
3689 position, queue, true) < 0) 3689 position, queue, false) < 0)
3690 break; 3690 break;
3691 if (position == PLAYLIST_INSERT_FIRST) 3691 if (position == PLAYLIST_INSERT_FIRST)
3692 position = PLAYLIST_INSERT; 3692 position = PLAYLIST_INSERT;