summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-03-01 21:47:56 +0100
committerJan Ekström <jeebjp@gmail.com>2018-03-03 02:38:01 +0200
commit6f5f92feab6d8848ba68cc8b9b838a7e3ac48d61 (patch)
treec16519d167eab879a8c1e4ad1b148a22d5dad9ec
parent4184f8585d02fa3b144e010be603c8814682fcea (diff)
downloadmpv-6f5f92feab6d8848ba68cc8b9b838a7e3ac48d61.tar.bz2
mpv-6f5f92feab6d8848ba68cc8b9b838a7e3ac48d61.tar.xz
player: set thread name in opener thread
Somewhat helpful for debugging.
-rw-r--r--player/loadfile.c3
1 files changed, 3 insertions, 0 deletions
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,