CoreAudioCaptureSource should be marked as an audio capture track
https://bugs.webkit.org/show_bug.cgi?id=197953
<rdar://problem/50552007>
Reviewed by Eric Carlson.
Manually tested.
* platform/mediastream/mac/CoreAudioCaptureSource.h:
Mark it as microphone so that it can get muted properly.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@245407 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 52b8265..38f453d 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2019-05-16 Youenn Fablet <youenn@apple.com>
+
+ CoreAudioCaptureSource should be marked as an audio capture track
+ https://bugs.webkit.org/show_bug.cgi?id=197953
+ <rdar://problem/50552007>
+
+ Reviewed by Eric Carlson.
+
+ Manually tested.
+
+ * platform/mediastream/mac/CoreAudioCaptureSource.h:
+ Mark it as microphone so that it can get muted properly.
+
2019-05-16 Alex Christensen <achristensen@webkit.org>
Add SPI to set a list of hosts to which to send custom header fields cross-origin
diff --git a/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h b/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h
index b3ea782..1ab816c 100644
--- a/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h
+++ b/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h
@@ -92,6 +92,7 @@
void settingsDidChange(OptionSet<RealtimeMediaSourceSettings::Flag>) final;
bool interrupted() const final;
+ CaptureDevice::DeviceType deviceType() const final { return CaptureDevice::DeviceType::Microphone; }
void initializeToStartProducingData();