1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 02:52:10 +00:00

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).
This commit is contained in:
wm4 2014-09-24 00:05:18 +02:00
parent 429260a35c
commit bf927531aa

View File

@ -522,7 +522,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
err = ca_enable_device_listener(p->device, changed); err = ca_enable_device_listener(p->device, changed);
CHECK_CA_ERROR("cannot install format change listener during init"); 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"); MP_WARN(ao, "stream has non-native byte order, output may fail\n");
ao->samplerate = p->stream_asbd.mSampleRate; ao->samplerate = p->stream_asbd.mSampleRate;