mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player: set thread name in opener thread
Somewhat helpful for debugging.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user