Index: webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc |
diff --git a/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc b/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc |
index 4c7445672acf274480852a894745e2277c7c2cc1..deb1b1f4bd5dbda45c45d9386fc91f7382733c2b 100644 |
--- a/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc |
+++ b/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc |
@@ -145,8 +145,9 @@ class BuiltinAudioDecoderFactory : public AudioDecoderFactory { |
} // namespace |
-std::unique_ptr<AudioDecoderFactory> CreateBuiltinAudioDecoderFactory() { |
- return std::unique_ptr<AudioDecoderFactory>(new BuiltinAudioDecoderFactory); |
+rtc::scoped_refptr<AudioDecoderFactory> CreateBuiltinAudioDecoderFactory() { |
+ return rtc::scoped_refptr<AudioDecoderFactory>( |
+ new rtc::RefCountedObject<BuiltinAudioDecoderFactory>); |
} |
} // namespace webrtc |