summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-04-02 17:18:15 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-04-02 17:18:15 +0000
commitbb40e6ed15589bf7ae85485470ff87cfb158b008 (patch)
tree62e04b17369d96c22cbc0e2dc9758761280f6eaa
parent03b54c29d769705b9f2682d6942521ed36d11852 (diff)
downloadrockbox-bb40e6ed15589bf7ae85485470ff87cfb158b008.tar.gz
rockbox-bb40e6ed15589bf7ae85485470ff87cfb158b008.zip
Fix a possible (though unlikely) deadlock condition spotted by jhMikeS. It would involve both the buffering and the audio thread sending synchronous messages to one another.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16931 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 10f8fb7ff6..f49831ef30 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1450,7 +1450,7 @@ static void buffering_audio_callback(enum callback_event ev, int value)
case EVENT_HANDLE_REBUFFER:
LOGFQUEUE("audio >| audio Q_AUDIO_FLUSH");
- queue_send(&audio_queue, Q_AUDIO_FLUSH, 0);
+ queue_post(&audio_queue, Q_AUDIO_FLUSH, 0);
break;
case EVENT_HANDLE_FINISHED: