Moved creation of AudioDecoderFactory to inside PeerConnectionFactory.
CreatePeerConnectionFactory does not yet expose the ability to set the
factory from the outside.
Added notry due to android_dbg being broken.
NOTRY=True
BUG=webrtc:5805
Review-Url: https://codereview.webrtc.org/1991233004
Cr-Commit-Position: refs/heads/master@{#13112}
diff --git a/webrtc/audio_receive_stream.h b/webrtc/audio_receive_stream.h
index 6d72b4d..9af84a7 100644
--- a/webrtc/audio_receive_stream.h
+++ b/webrtc/audio_receive_stream.h
@@ -16,14 +16,14 @@
#include <string>
#include <vector>
+#include "webrtc/base/scoped_ref_ptr.h"
+#include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h"
#include "webrtc/common_types.h"
#include "webrtc/config.h"
#include "webrtc/transport.h"
#include "webrtc/typedefs.h"
namespace webrtc {
-
-class AudioDecoder;
class AudioSinkInterface;
// WORK IN PROGRESS
@@ -101,6 +101,8 @@
// Call::CreateReceiveStream().
// TODO(solenberg): Use unique_ptr<> once our std lib fully supports C++11.
std::map<uint8_t, AudioDecoder*> decoder_map;
+
+ rtc::scoped_refptr<AudioDecoderFactory> decoder_factory;
};
// Starts stream activity.