mirror of https://github.com/mpv-player/mpv
client API: accept NULL as mpv_destroy() argument
This commit is contained in:
parent
e749470018
commit
bd75766ef0
|
@ -188,6 +188,9 @@ void mpv_resume(mpv_handle *ctx)
|
|||
|
||||
void mpv_destroy(mpv_handle *ctx)
|
||||
{
|
||||
if (!ctx)
|
||||
return;
|
||||
|
||||
struct mp_client_api *clients = ctx->clients;
|
||||
|
||||
pthread_mutex_lock(&clients->lock);
|
||||
|
|
Loading…
Reference in New Issue