summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 2f0895a590..6c37a9a71d 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -484,10 +484,14 @@ static int add_indices_to_playlist(struct playlist_info* playlist,
484 { 484 {
485 /* use mp3 buffer for maximum load speed */ 485 /* use mp3 buffer for maximum load speed */
486 audio_stop(); 486 audio_stop();
487#if CONFIG_CODEC != SWCODEC
487 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ 488 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
488
489 buffer = (char *)audiobuf;
490 buflen = (audiobufend - audiobuf); 489 buflen = (audiobufend - audiobuf);
490 buffer = (char *)audiobuf;
491#else
492 buflen = (audiobufend - audiobuf - talk_get_bufsize());
493 buffer = (char *)&audiobuf[talk_get_bufsize()];
494#endif
491 } 495 }
492 496
493 store_index = true; 497 store_index = true;