client API: allow calling mpv_terminate_destroy(NULL)
This is an oversight and a bug. CC: @mpv-player/stable
This commit is contained in:
1 parent
4a5cfb4323
commit
4fedf86b8a
1 file changed
+3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user