mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 13: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:
parent
429260a35c
commit
bf927531aa
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user