summaryrefslogtreecommitdiffstats
path: root/player/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/client.c')
-rw-r--r--player/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/client.c b/player/client.c
index 27e3dfc08c..778070f266 100644
--- a/player/client.c
+++ b/player/client.c
@@ -210,7 +210,8 @@ void mpv_destroy(mpv_handle *ctx)
talloc_free(ctx);
ctx = NULL;
// shutdown_clients() sleeps to avoid wasting CPU
- mp_input_wakeup(clients->mpctx->input);
+ if (clients->mpctx->input)
+ mp_input_wakeup(clients->mpctx->input);
// TODO: make core quit if there are no clients
break;
}