Skip to content

Commit 2e2059a

Browse files
committed
Merge pull request godotengine#112404 from AllenDang/master
Fix CoreAudio driver crash when starting input with uninitialized device
2 parents 29a1964 + 80c2d6c commit 2e2059a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/coreaudio/audio_driver_coreaudio.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@
520520
}
521521

522522
Error AudioDriverCoreAudio::input_start() {
523+
ERR_FAIL_NULL_V(input_unit, FAILED);
524+
523525
input_buffer_init(capture_buffer_frames);
524526

525527
OSStatus result = AudioOutputUnitStart(input_unit);

0 commit comments

Comments
 (0)