diff --git a/libeplayer3/container/container_ass.c b/libeplayer3/container/container_ass.c index 61ae2e3..d10a8cf 100644 --- a/libeplayer3/container/container_ass.c +++ b/libeplayer3/container/container_ass.c @@ -39,6 +39,7 @@ #include #include #include +#include #include @@ -315,6 +316,10 @@ void storeRegion(unsigned int x, unsigned int y, unsigned int w, unsigned int h, /* **************************** */ static void ASSThread(Context_t *context) { + char threadname[17]; + strncpy(threadname, __func__, sizeof(threadname)); + threadname[16] = 0; + prctl (PR_SET_NAME, (unsigned long)&threadname); Writer_t* writer; ass_printf(10, "\n");