Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: webrtc/modules/audio_coding/neteq/neteq.cc

Issue 1949533002: WIP: Move the creation of AudioCodecFactory into PeerConnectionFactory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/neteq.cc
diff --git a/webrtc/modules/audio_coding/neteq/neteq.cc b/webrtc/modules/audio_coding/neteq/neteq.cc
index edc29da4357ab0546275ebb249293b90096798b9..02b674fbb80629e07289752e8acb3fabd4e03061 100644
--- a/webrtc/modules/audio_coding/neteq/neteq.cc
+++ b/webrtc/modules/audio_coding/neteq/neteq.cc
@@ -32,8 +32,12 @@ std::string NetEq::Config::ToString() const {
// Creates all classes needed and inject them into a new NetEqImpl object.
// Return the new object.
-NetEq* NetEq::Create(const NetEq::Config& config) {
- return new NetEqImpl(config, NetEqImpl::Dependencies(config));
+NetEq* NetEq::Create(
+ const NetEq::Config& config,
+ std::shared_ptr<AudioDecoderFactory> decoder_factory) {
+ return new NetEqImpl(
+ config,
+ NetEqImpl::Dependencies(config, std::move(decoder_factory)));
}
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698