diff options
-rw-r--r-- | player/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c index 537f8f3cb2..27e3dfc08c 100644 --- a/player/client.c +++ b/player/client.c @@ -188,6 +188,9 @@ void mpv_resume(mpv_handle *ctx) void mpv_destroy(mpv_handle *ctx) { + if (!ctx) + return; + struct mp_client_api *clients = ctx->clients; pthread_mutex_lock(&clients->lock); |