summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c
index ececec37f6..e7a993dd0e 100644
--- a/player/client.c
+++ b/player/client.c
@@ -330,6 +330,9 @@ static void get_thread(void *ptr)
void mpv_terminate_destroy(mpv_handle *ctx)
{
+ if (!ctx)
+ return;
+
mpv_command(ctx, (const char*[]){"quit", NULL});
if (!ctx->owner) {