summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2007-10-27 04:19:17 +0000
committerBrandon Low <lostlogic@rockbox.org>2007-10-27 04:19:17 +0000
commit2c1e8283aa3923c73cee2e5bfbd39774ebb0ffd1 (patch)
tree1449b34df65abbabdadb28cbc38e08455d9af8b1 /apps/buffering.c
parent14b6f437bbaaddaa47e6fb991a57c74e691b8c2b (diff)
Create queue stuff before the thread that will use it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15328 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 08726a5582..bdf7767e42 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1195,13 +1195,13 @@ void buffering_init(void) {
conf_filechunk = BUFFERING_DEFAULT_FILECHUNK;
conf_watermark = BUFFERING_DEFAULT_WATERMARK;
+ queue_init(&buffering_queue, true);
+ queue_enable_queue_send(&buffering_queue, &buffering_queue_sender_list);
+
buffering_thread_p = create_thread( buffering_thread, buffering_stack,
sizeof(buffering_stack), 0,
buffering_thread_name IF_PRIO(, PRIORITY_BUFFERING)
IF_COP(, CPU));
-
- queue_init(&buffering_queue, true);
- queue_enable_queue_send(&buffering_queue, &buffering_queue_sender_list);
}
/* Initialise the buffering subsystem */