[WebRTC][GStreamer] Make sure to have the default microphone on the top of the list
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2018 14:56:11 +0000 (14:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2018 14:56:11 +0000 (14:56 +0000)
commit9c682b5e491ea4192f4612c38ddddcdaf3f5b2dc
treee96ca9b2a4e16eaa5920a6c318de133b1a4bb6eb
parent4f86f9e8d3a7ba63ae6fbe7bb67f84afb20eb70c
[WebRTC][GStreamer] Make sure to have the default microphone on the top of the list
https://bugs.webkit.org/show_bug.cgi?id=192026

Patch by Thibault Saunier <tsaunier@igalia.com> on 2018-11-28
Reviewed by Philippe Normand.

Otherwise we might end up picking a useless one in some applications
(not sure what those application do though).

GStreamer patch proposed as https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/merge_requests/34/diffs

Source/WebCore:

* platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:
(WebCore::sortDevices):
(WebCore::GStreamerCaptureDeviceManager::addDevice):
(WebCore::GStreamerCaptureDeviceManager::refreshCaptureDevices):
* platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.h:

Tools:

* flatpak/org.webkit.CommonModules.yaml:
* gstreamer/jhbuild.modules:
* gstreamer/patches/gst-plugins-good-0014-pulse-Mark-default-devices-as-default.patch: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp
Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.h
Tools/ChangeLog
Tools/flatpak/org.webkit.CommonModules.yaml
Tools/gstreamer/jhbuild.modules
Tools/gstreamer/patches/gst-plugins-good-0014-pulse-Mark-default-devices-as-default.patch [new file with mode: 0644]