diff options
Diffstat (limited to 'player/scripting.c')
-rw-r--r-- | player/scripting.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/player/scripting.c b/player/scripting.c index 5bc9a915f3..935bbd0490 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -26,6 +26,7 @@ #include "config.h" #include "osdep/io.h" +#include "osdep/threads.h" #include "common/common.h" #include "common/msg.h" @@ -78,6 +79,10 @@ static void *script_thread(void *p) struct thread_arg *arg = p; + char name[90]; + snprintf(name, sizeof(name), "script (%s)", arg->fname); + mpthread_set_name(name); + if (arg->backend->load(arg->client, arg->fname) < 0) MP_ERR(arg, "Could not load script %s\n", arg->fname); |