From 91c35ff7739a60026d4b1892950a2f09af8e3df7 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Tue, 4 Dec 2007 15:11:45 +0000 Subject: Attempt at fixing the statusbar showing up late in some screens and circumstances. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15872 a1c6a512-1295-4272-9138-f99709370657 --- apps/voice_thread.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 3782ae8aac..4027fd067b 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -135,8 +135,9 @@ void mp3_play_stop(void) { mutex_lock(&voice_mutex); /* Sync against voice_stop */ - LOGFQUEUE("mp3 >| voice Q_VOICE_STOP: 1"); - queue_send(&voice_queue, Q_VOICE_STOP, 1); + LOGFQUEUE("mp3 > voice Q_VOICE_STOP: 1"); + queue_remove_from_head(&voice_queue, Q_VOICE_STOP); + queue_post(&voice_queue, Q_VOICE_STOP, 1); mutex_unlock(&voice_mutex); } @@ -163,7 +164,8 @@ void voice_stop(void) mutex_lock(&voice_mutex); /* Stop the output and current clip */ - mp3_play_stop(); + LOGFQUEUE("mp3 >| voice Q_VOICE_STOP: 1"); + queue_send(&voice_queue, Q_VOICE_STOP, 1); /* Careful if using sync objects in talk.c - make sure locking order is * observed with one or the other always granted first */ -- cgit v1.2.3