mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
ao: allow ao_uninit(NULL)
This commit is contained in:
parent
fe8634ea90
commit
37d505f363
@ -307,7 +307,8 @@ done:
|
||||
// Uninitialize and destroy the AO. Remaining audio must be dropped.
|
||||
void ao_uninit(struct ao *ao)
|
||||
{
|
||||
ao->api->uninit(ao);
|
||||
if (ao)
|
||||
ao->api->uninit(ao);
|
||||
talloc_free(ao);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user