summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/player/main.c b/player/main.c
index 48bcab0bef..a51b2a2f0e 100644
--- a/player/main.c
+++ b/player/main.c
@@ -274,14 +274,6 @@ static bool handle_help_options(struct MPContext *mpctx)
return opt_exit;
}
-#ifdef PTW32_STATIC_LIB
-static void detach_ptw32(void)
-{
- pthread_win32_thread_detach_np();
- pthread_win32_process_detach_np();
-}
-#endif
-
static void osdep_preinit(int *p_argc, char ***p_argv)
{
char *enable_talloc = getenv("MPV_LEAK_REPORT");
@@ -295,12 +287,6 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
mp_get_converted_argv(p_argc, p_argv);
#endif
-#ifdef PTW32_STATIC_LIB
- pthread_win32_process_attach_np();
- pthread_win32_thread_attach_np();
- atexit(detach_ptw32);
-#endif
-
#if defined(__MINGW32__) || defined(__CYGWIN__)
// stop Windows from showing all kinds of annoying error dialogs
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);