summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-15 22:19:49 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-15 22:19:49 +0000
commit76b4096be7f62be4282e7ee2246d7fb852a966eb (patch)
treea29896993199a96d81b8bdf2ddb605a94b098e7c /firmware/mpeg.c
parenta23fe4874168c9d6fd4aa824adf715eb8ff430c2 (diff)
downloadrockbox-76b4096be7f62be4282e7ee2246d7fb852a966eb.tar.gz
rockbox-76b4096be7f62be4282e7ee2246d7fb852a966eb.zip
Added thread names
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1357 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 4d6113176b..85e7ccc4fe 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -33,7 +33,6 @@
33#include "file.h" 33#include "file.h"
34#endif 34#endif
35 35
36#define MPEG_STACK_SIZE 0x2000
37#define MPEG_CHUNKSIZE 0x20000 36#define MPEG_CHUNKSIZE 0x20000
38#define MPEG_LOW_WATER 0x30000 37#define MPEG_LOW_WATER 0x30000
39 38
@@ -260,7 +259,8 @@ static unsigned char fliptable[] =
260static unsigned short big_fliptable[65536]; 259static unsigned short big_fliptable[65536];
261 260
262static struct event_queue mpeg_queue; 261static struct event_queue mpeg_queue;
263static int mpeg_stack[MPEG_STACK_SIZE/sizeof(int)]; 262static char mpeg_stack[DEFAULT_STACK_SIZE + 0x1000];
263static char mpeg_thread_name[] = "mpeg";
264 264
265/* defined in linker script */ 265/* defined in linker script */
266extern unsigned char mp3buf[]; 266extern unsigned char mp3buf[];
@@ -984,7 +984,8 @@ void mpeg_init(int volume, int bass, int treble)
984 create_fliptable(); 984 create_fliptable();
985 985
986 queue_init(&mpeg_queue); 986 queue_init(&mpeg_queue);
987 create_thread(mpeg_thread, mpeg_stack, sizeof(mpeg_stack)); 987 create_thread(mpeg_thread, mpeg_stack,
988 sizeof(mpeg_stack), mpeg_thread_name);
988 mas_poll_start(2); 989 mas_poll_start(2);
989 990
990#ifndef ARCHOS_RECORDER 991#ifndef ARCHOS_RECORDER