mirror of https://github.com/mpv-player/mpv
client API: allow calling mpv_terminate_destroy(NULL)
This is an oversight and a bug. CC: @mpv-player/stable
This commit is contained in:
parent
4a5cfb4323
commit
4fedf86b8a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue