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:
parent
951cbdde7e
commit
b71cbd599b
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue