mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08:00
client API: allow calling mpv_terminate_destroy(NULL)
This is an oversight and a bug. CC: @mpv-player/stable
This commit is contained in:
@@ -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