1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Nicolas Pennequin 2008-03-29 13:32:37 +00:00
parent 951cbdde7e
commit b71cbd599b

View file

@ -1844,7 +1844,6 @@ buffer_full:
static void audio_fill_file_buffer(bool start_play, size_t offset) 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 had_next_track = audio_next_track() != NULL;
bool continue_buffering; 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); continue_buffering = audio_load_track(offset, start_play);
do { do {
sleep(1); 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 */ /* There's a message in the queue. break the loop to treat it */
break; break;
continue_buffering = audio_load_track(0, false); continue_buffering = audio_load_track(0, false);