1
0
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:
wm4 2015-06-02 21:03:04 +02:00
parent fe8634ea90
commit 37d505f363

View File

@ -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);
}