From 03791fae163591951b2b8208fe6b0b6c95d8ae77 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Mar 2018 11:27:46 +0100 Subject: all: replace mpv_detach_destroy() with mpv_destroy() --- player/scripting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') diff --git a/player/scripting.c b/player/scripting.c index 0838630bed..9d2cd97de5 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -95,7 +95,7 @@ static void *script_thread(void *p) if (arg->backend->load(arg->client, arg->fname) < 0) MP_ERR(arg, "Could not load %s %s\n", arg->backend->name, arg->fname); - mpv_detach_destroy(arg->client); + mpv_destroy(arg->client); talloc_free(arg); return NULL; } @@ -145,7 +145,7 @@ static int mp_load_script(struct MPContext *mpctx, const char *fname) pthread_t thread; if (pthread_create(&thread, NULL, script_thread, arg)) { - mpv_detach_destroy(arg->client); + mpv_destroy(arg->client); talloc_free(arg); return -1; } -- cgit v1.2.3