From fd47edb905c730255616e9c472ad600c342b493c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 23 May 2022 22:04:54 +0200 Subject: [PATCH] apple/AudioObject: call AllocatedArray::data() instead of begin() Since commit 5fb97b81d15f95b30aac107081e1317fb897d737, begin() returns an iterator class and not a pointer. Fixes one part of https://github.com/MusicPlayerDaemon/MPD/issues/1538 --- src/apple/AudioObject.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apple/AudioObject.hxx b/src/apple/AudioObject.hxx index ff0362dd4..d6ab5f4af 100644 --- a/src/apple/AudioObject.hxx +++ b/src/apple/AudioObject.hxx @@ -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);