client API: allow calling mpv_terminate_destroy(NULL)

This is an oversight and a bug.

CC: @mpv-player/stable
This commit is contained in:
wm4 authored and Alessandro Ghedini committed 2014-07-05 00:28:54 +02:00
1 parent 25a0709972
commit 5dce714dfe
1 file changed
+3
+3
View File
@@ -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) {