player: set thread name in opener thread

Somewhat helpful for debugging.
This commit is contained in:
wm4 2018-03-01 21:47:56 +01:00 committed by Jan Ekström
parent 4184f8585d
commit 6f5f92feab
1 changed files with 3 additions and 0 deletions

View File

@ -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,