Title: [294394] trunk/Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp
- Revision
- 294394
- Author
- [email protected]
- Date
- 2022-05-18 06:10:27 -0700 (Wed, 18 May 2022)
Log Message
CoreAudioSharedInternalUnit::set should pass the value pointer directly
https://bugs.webkit.org/show_bug.cgi?id=240565
rdar://93364609
Patch by Youenn Fablet <[email protected]> on 2022-05-18
Reviewed by Eric Carlson.
Manually tested by verifying that https://webrtc.github.io/samples/src/content/getusermedia/audio/ can play the microphone stream
* Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp:
(WebCore::CoreAudioSharedInternalUnit::set):
Pass the pointer to the audio unit and not the pointer's address.
Canonical link: https://commits.webkit.org/250688@main
Modified Paths
Diff
Modified: trunk/Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp (294393 => 294394)
--- trunk/Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp 2022-05-18 13:05:15 UTC (rev 294393)
+++ trunk/Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp 2022-05-18 13:10:27 UTC (rev 294394)
@@ -143,7 +143,7 @@
OSStatus CoreAudioSharedInternalUnit::set(AudioUnitPropertyID propertyID, AudioUnitScope scope, AudioUnitElement element, const void* value, UInt32 size)
{
- return PAL::AudioUnitSetProperty(m_ioUnit, propertyID, scope, element, &value, size);
+ return PAL::AudioUnitSetProperty(m_ioUnit, propertyID, scope, element, value, size);
}
OSStatus CoreAudioSharedInternalUnit::get(AudioUnitPropertyID propertyID, AudioUnitScope scope, AudioUnitElement element, void* value, UInt32* size)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes