diff options
author | Misaki Kasumi <misakikasumi@outlook.com> | 2024-03-17 04:14:47 +0800 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-03-29 13:46:59 +0100 |
commit | 1ed8607292ae4f9eafd041d304ad68740ffd3fd7 (patch) | |
tree | 3d62798116b3bd358ee5b9ff6d2733a45f0cd132 /audio/out/ao_coreaudio_utils.c | |
parent | 7ab1080749b02e3e545166e67528c6a039e04969 (diff) | |
download | mpv-1ed8607292ae4f9eafd041d304ad68740ffd3fd7.tar.bz2 mpv-1ed8607292ae4f9eafd041d304ad68740ffd3fd7.tar.xz |
ao_avfoundation: initial avfoundation ao support
Diffstat (limited to 'audio/out/ao_coreaudio_utils.c')
-rw-r--r-- | audio/out/ao_coreaudio_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c index f730beca87..e74092a8d2 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -138,7 +138,8 @@ bool check_ca_st(struct ao *ao, int level, OSStatus code, const char *message) { if (code == noErr) return true; - mp_msg(ao->log, level, "%s (%s/%d)\n", message, mp_tag_str(code), (int)code); + if (ao) + mp_msg(ao->log, level, "%s (%s/%d)\n", message, mp_tag_str(code), (int)code); return false; } |