From 035529c487feb5a0e1d951b1ac8f82c23cfbff62 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 30 Sep 2007 17:23:13 +0000 Subject: Enable auto reply for queue messages sent with queue_send. It's only nescessary to use queue_reply to return a value other than zero or to return a result before waiting on the queue again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14923 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index 9bdcbac213..c58c5a6bf2 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -3598,8 +3598,6 @@ static void audio_thread(void) while (1) { - intptr_t result = 0; - if (filling) { queue_wait_w_tmo(&audio_queue, &ev, 0); @@ -3685,12 +3683,12 @@ static void audio_thread(void) case Q_AUDIO_REBUFFER_SEEK: LOGFQUEUE("audio < Q_AUDIO_REBUFFER_SEEK"); - result = audio_rebuffer_and_seek(ev.data); + queue_reply(&audio_queue, audio_rebuffer_and_seek(ev.data)); break; case Q_AUDIO_CHECK_NEW_TRACK: LOGFQUEUE("audio < Q_AUDIO_CHECK_NEW_TRACK"); - result = audio_check_new_track(); + queue_reply(&audio_queue, audio_check_new_track()); break; case Q_AUDIO_DIR_SKIP: @@ -3729,8 +3727,6 @@ static void audio_thread(void) default: LOGFQUEUE("audio < default"); } /* end switch */ - - queue_reply(&audio_queue, result); } /* end while */ } -- cgit v1.2.3