mirror of https://github.com/mpv-player/mpv
player/main: set main thread name as mpv
Now that we don't prepend `mpv/` to all thread names, `main` is too ambiguous and since it is main thread it can be seen as process name.
This commit is contained in:
parent
f537378d90
commit
98a27b3cd1
|
@ -420,7 +420,7 @@ int mp_initialize(struct MPContext *mpctx, char **options)
|
||||||
|
|
||||||
int mpv_main(int argc, char *argv[])
|
int mpv_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
mpthread_set_name("main");
|
mpthread_set_name("mpv");
|
||||||
struct MPContext *mpctx = mp_create();
|
struct MPContext *mpctx = mp_create();
|
||||||
if (!mpctx)
|
if (!mpctx)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue