diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-04-02 17:18:15 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-04-02 17:18:15 +0000 |
commit | bb40e6ed15589bf7ae85485470ff87cfb158b008 (patch) | |
tree | 62e04b17369d96c22cbc0e2dc9758761280f6eaa | |
parent | 03b54c29d769705b9f2682d6942521ed36d11852 (diff) | |
download | rockbox-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.c | 2 |
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) | |||
1450 | 1450 | ||
1451 | case EVENT_HANDLE_REBUFFER: | 1451 | case EVENT_HANDLE_REBUFFER: |
1452 | LOGFQUEUE("audio >| audio Q_AUDIO_FLUSH"); | 1452 | LOGFQUEUE("audio >| audio Q_AUDIO_FLUSH"); |
1453 | queue_send(&audio_queue, Q_AUDIO_FLUSH, 0); | 1453 | queue_post(&audio_queue, Q_AUDIO_FLUSH, 0); |
1454 | break; | 1454 | break; |
1455 | 1455 | ||
1456 | case EVENT_HANDLE_FINISHED: | 1456 | case EVENT_HANDLE_FINISHED: |