1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/apps/plugins/mpegplayer/video_thread.c b/apps/plugins/mpegplayer/video_thread.c
index 2bfc5c6..856d785 100644
--- a/apps/plugins/mpegplayer/video_thread.c
+++ b/apps/plugins/mpegplayer/video_thread.c
@@ -62,7 +62,7 @@ static int video_num_skipped SHAREDBSS_ATTR;

 /* TODO: Check if 4KB is appropriate - it works for my test streams,
    so maybe we can reduce it. */
-#define VIDEO_STACKSIZE (4*1024)
+#define VIDEO_STACKSIZE (MAX(DEFAULT_STACK_SIZE+(4<<10), 4*1024))
 static uint32_t video_stack[VIDEO_STACKSIZE / sizeof(uint32_t)] IBSS_ATTR;
 static struct event_queue video_str_queue SHAREDBSS_ATTR;
 static struct queue_sender_list video_str_queue_send SHAREDBSS_ATTR;