From 17800813b99f58bc9fbed48e432e49cc0f83afb8 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Sun, 1 May 2022 17:15:07 +0800 Subject: [PATCH] Fix iOS compile error. --- src/modules/sound/lullaby/CoreAudioDecoder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/sound/lullaby/CoreAudioDecoder.cpp b/src/modules/sound/lullaby/CoreAudioDecoder.cpp index 6839e2c43..fcdca95e6 100644 --- a/src/modules/sound/lullaby/CoreAudioDecoder.cpp +++ b/src/modules/sound/lullaby/CoreAudioDecoder.cpp @@ -121,6 +121,7 @@ CoreAudioDecoder::~CoreAudioDecoder() int CoreAudioDecoder::probe(Stream* stream) { AudioFileID audioFile; + OSStatus err = noErr; // I think this is sufficient err = AudioFileOpenWithCallbacks(stream, readFunc, nullptr, getSizeFunc, nullptr, kAudioFileMP3Type, &audioFile);