Removing usage of std::unordered_set

In Chromium, they are discouraged.

Bug: webrtc:12689
Change-Id: I0e2a03b909d8a6d239e11969659e4fdc1a89766c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/229188
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Victor Boivie <boivie@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#34880}
This commit is contained in:
Victor Boivie 2021-08-18 20:07:46 +02:00 committed by WebRTC LUCI CQ
parent 7bf22e574a
commit 9adbbebde9
2 changed files with 3 additions and 2 deletions

View file

@ -92,6 +92,7 @@ rtc_library("audio") {
"../rtc_base:rtc_task_queue",
"../rtc_base:safe_minmax",
"../rtc_base:threading",
"../rtc_base/containers:flat_set",
"../rtc_base/experiments:field_trial_parser",
"../rtc_base/synchronization:mutex",
"../rtc_base/system:no_unique_address",

View file

@ -13,12 +13,12 @@
#include <map>
#include <memory>
#include <unordered_set>
#include "api/sequence_checker.h"
#include "audio/audio_transport_impl.h"
#include "audio/null_audio_poller.h"
#include "call/audio_state.h"
#include "rtc_base/containers/flat_set.h"
#include "rtc_base/ref_count.h"
namespace webrtc {
@ -80,7 +80,7 @@ class AudioState : public webrtc::AudioState {
// stats are still updated.
std::unique_ptr<NullAudioPoller> null_audio_poller_;
std::unordered_set<webrtc::AudioReceiveStream*> receiving_streams_;
webrtc::flat_set<webrtc::AudioReceiveStream*> receiving_streams_;
struct StreamProperties {
int sample_rate_hz = 0;
size_t num_channels = 0;