apple/AudioObject: call AllocatedArray::data() instead of begin()

Since commit 5fb97b81d1, begin() returns
an iterator class and not a pointer.

Fixes one part of https://github.com/MusicPlayerDaemon/MPD/issues/1538
This commit is contained in:
Max Kellermann 2022-05-23 22:04:54 +02:00
parent 8ee442e9b1
commit fd47edb905

View File

@ -95,7 +95,7 @@ AudioObjectGetPropertyDataArray(AudioObjectID inObjectID,
status = AudioObjectGetPropertyData(inObjectID, &inAddress,
0, nullptr,
&size, result.begin());
&size, result.data());
if (status != noErr)
Apple::ThrowOSStatus(status);