diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-03-29 13:32:37 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-03-29 13:32:37 +0000 |
commit | b71cbd599b54936953be7c385e1343d509924b15 (patch) | |
tree | 283ef2ebe21e567c7689b0c4c934f5a936bf948a | |
parent | 951cbdde7ed6f42d4c3bf992688b38673181de63 (diff) |
Use queue_empty instead of queue_peek again now that we don't care about the event type anymore.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16876 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index e632486694..053181891f 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1844,7 +1844,6 @@ buffer_full: static void audio_fill_file_buffer(bool start_play, size_t offset) { - struct queue_event ev; bool had_next_track = audio_next_track() != NULL; bool continue_buffering; @@ -1871,7 +1870,7 @@ static void audio_fill_file_buffer(bool start_play, size_t offset) continue_buffering = audio_load_track(offset, start_play); do { sleep(1); - if (queue_peek(&audio_queue, &ev)) + if (!queue_empty(&audio_queue)) /* There's a message in the queue. break the loop to treat it */ break; continue_buffering = audio_load_track(0, false); |