diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-12-04 15:11:45 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-12-04 15:11:45 +0000 |
commit | 91c35ff7739a60026d4b1892950a2f09af8e3df7 (patch) | |
tree | 9d5835aa251c1b8c2dfdd8871974ba427e2607a6 | |
parent | 6a05883239e3fa0569ce7ac90910c6ae8f3675c2 (diff) | |
download | rockbox-91c35ff7739a60026d4b1892950a2f09af8e3df7.tar.gz rockbox-91c35ff7739a60026d4b1892950a2f09af8e3df7.zip |
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
-rw-r--r-- | apps/voice_thread.c | 8 |
1 files 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) | |||
135 | { | 135 | { |
136 | mutex_lock(&voice_mutex); /* Sync against voice_stop */ | 136 | mutex_lock(&voice_mutex); /* Sync against voice_stop */ |
137 | 137 | ||
138 | LOGFQUEUE("mp3 >| voice Q_VOICE_STOP: 1"); | 138 | LOGFQUEUE("mp3 > voice Q_VOICE_STOP: 1"); |
139 | queue_send(&voice_queue, Q_VOICE_STOP, 1); | 139 | queue_remove_from_head(&voice_queue, Q_VOICE_STOP); |
140 | queue_post(&voice_queue, Q_VOICE_STOP, 1); | ||
140 | 141 | ||
141 | mutex_unlock(&voice_mutex); | 142 | mutex_unlock(&voice_mutex); |
142 | } | 143 | } |
@@ -163,7 +164,8 @@ void voice_stop(void) | |||
163 | mutex_lock(&voice_mutex); | 164 | mutex_lock(&voice_mutex); |
164 | 165 | ||
165 | /* Stop the output and current clip */ | 166 | /* Stop the output and current clip */ |
166 | mp3_play_stop(); | 167 | LOGFQUEUE("mp3 >| voice Q_VOICE_STOP: 1"); |
168 | queue_send(&voice_queue, Q_VOICE_STOP, 1); | ||
167 | 169 | ||
168 | /* Careful if using sync objects in talk.c - make sure locking order is | 170 | /* Careful if using sync objects in talk.c - make sure locking order is |
169 | * observed with one or the other always granted first */ | 171 | * observed with one or the other always granted first */ |