From 6f5f92feab6d8848ba68cc8b9b838a7e3ac48d61 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Mar 2018 21:47:56 +0100 Subject: player: set thread name in opener thread Somewhat helpful for debugging. --- player/loadfile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player') diff --git a/player/loadfile.c b/player/loadfile.c index d0ce28a1e1..2499c01517 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -28,6 +28,7 @@ #include "osdep/io.h" #include "osdep/terminal.h" +#include "osdep/threads.h" #include "osdep/timer.h" #include "common/msg.h" @@ -829,6 +830,8 @@ static void *open_demux_thread(void *ctx) { struct MPContext *mpctx = ctx; + mpthread_set_name("opener"); + struct demuxer_params p = { .force_format = mpctx->open_format, .stream_flags = mpctx->open_url_flags, -- cgit v1.2.3