From bf927531aa882ed0150461a0db59a08225d38bb2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 24 Sep 2014 00:05:18 +0200 Subject: ao_coreaudio: fix build failure Commit 5b5a3d0c broke this. The really funny thing is that this code was actually always under "#if BYTE_ORDER == BIG_ENDIAN". The breaking commit just edited this code slightly, but it must have failed to compile on big endian long before (since over 1 year ago, commit d3fb58). --- audio/out/ao_coreaudio_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/out/ao_coreaudio_device.c b/audio/out/ao_coreaudio_device.c index c221b62e59..0c908d52ef 100644 --- a/audio/out/ao_coreaudio_device.c +++ b/audio/out/ao_coreaudio_device.c @@ -522,7 +522,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd) err = ca_enable_device_listener(p->device, changed); CHECK_CA_ERROR("cannot install format change listener during init"); - if (p->stream_asdb.mFormatFlags & kAudioFormatFlagIsBigEndian) + if (p->stream_asbd.mFormatFlags & kAudioFormatFlagIsBigEndian) MP_WARN(ao, "stream has non-native byte order, output may fail\n"); ao->samplerate = p->stream_asbd.mSampleRate; -- cgit v1.2.3