nxplayer & nxrecorder: make main thread configurable, set to default

Change-Id: I730f2dab00da245a79fc61d679296e73efc2374f
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2020-10-27 12:25:20 +08:00 committed by Xiang Xiao
parent 3b884cfb87
commit ee7b0fc1dd
3 changed files with 9 additions and 3 deletions

View File

@ -21,7 +21,7 @@ config NXPLAYER_MAINTHREAD_STACKSIZE
config NXPLAYER_PLAYTHREAD_STACKSIZE
int "NxPlayer thread stack size"
default 1500
default PTHREAD_STACK_DEFAULT
---help---
Stack size to use with the NxPlayer play thread.

View File

@ -13,9 +13,15 @@ config SYSTEM_NXRECORDER
if SYSTEM_NXRECORDER
config NXRECORDER_MAINTHREAD_STACKSIZE
int "NxRecoder main thread stack size"
default DEFAULT_TASK_STACKSIZE
---help---
Stack size to use with the NxRecoder main thread.
config NXRECORDER_RECORDTHREAD_STACKSIZE
int "NxRecorder thread stack size"
default 1500
default PTHREAD_STACK_DEFAULT
---help---
Stack size to use with the NxRecorder record thread.

View File

@ -28,7 +28,7 @@ CSRCS = nxrecorder.c
ifneq ($(CONFIG_NXRECORDER_COMMAND_LINE),)
PROGNAME = nxrecorder
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
STACKSIZE = $(CONFIG_NXRECORDER_MAINTHREAD_STACKSIZE)
MODULE = $(CONFIG_NXRECORDER_COMMAND_LINE)
MAINSRC = nxrecorder_main.c