summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 2425cf5376..2ac54e7d74 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2594,8 +2594,6 @@ static void audio_fill_file_buffer(bool start_play, size_t offset)
2594 if (!queue_empty(&audio_queue)) { 2594 if (!queue_empty(&audio_queue)) {
2595 /* There's a message in the queue. break the loop to treat it, 2595 /* There's a message in the queue. break the loop to treat it,
2596 and go back to filling after that. */ 2596 and go back to filling after that. */
2597 LOGFQUEUE("buffering > audio Q_AUDIO_FILL_BUFFER");
2598 queue_post(&audio_queue, Q_AUDIO_FILL_BUFFER, 0);
2599 break; 2597 break;
2600 } 2598 }
2601 } while (continue_buffering); 2599 } while (continue_buffering);
@@ -2604,7 +2602,6 @@ static void audio_fill_file_buffer(bool start_play, size_t offset)
2604 track_changed = true; 2602 track_changed = true;
2605 2603
2606 audio_generate_postbuffer_events(); 2604 audio_generate_postbuffer_events();
2607 register_buffer_low_callback(low_buffer_callback);
2608} 2605}
2609 2606
2610static void audio_rebuffer(void) 2607static void audio_rebuffer(void)
@@ -2702,6 +2699,7 @@ static int audio_check_new_track(void)
2702 track_ridx &= MAX_TRACK_MASK; 2699 track_ridx &= MAX_TRACK_MASK;
2703 2700
2704 buf_set_base_handle(CUR_TI->audio_hid); 2701 buf_set_base_handle(CUR_TI->audio_hid);
2702 register_buffer_low_callback(low_buffer_callback);
2705 2703
2706 if (automatic_skip) 2704 if (automatic_skip)
2707 { 2705 {