Index: webrtc/modules/audio_coding/acm2/rent_a_codec.h |
diff --git a/webrtc/modules/audio_coding/acm2/rent_a_codec.h b/webrtc/modules/audio_coding/acm2/rent_a_codec.h |
index d6f159a5b05398d8eb69c17ed94a60847f50cc77..e41f77d10354f9776a9770b3ef2334b022bb3ff8 100644 |
--- a/webrtc/modules/audio_coding/acm2/rent_a_codec.h |
+++ b/webrtc/modules/audio_coding/acm2/rent_a_codec.h |
@@ -222,16 +222,13 @@ class RentACodec { |
// will be stolen. |
std::unique_ptr<AudioEncoder> RentEncoderStack(StackParameters* param); |
- // Creates and returns an iSAC decoder, which will remain live until the |
- // Rent-A-Codec is destroyed. Subsequent calls will simply return the same |
- // object. |
- AudioDecoder* RentIsacDecoder(); |
+ // Creates and returns an iSAC decoder. |
+ std::unique_ptr<AudioDecoder> RentIsacDecoder(); |
private: |
std::unique_ptr<AudioEncoder> speech_encoder_; |
std::unique_ptr<AudioEncoder> cng_encoder_; |
std::unique_ptr<AudioEncoder> red_encoder_; |
- std::unique_ptr<AudioDecoder> isac_decoder_; |
LockedIsacBandwidthInfo isac_bandwidth_info_; |
RTC_DISALLOW_COPY_AND_ASSIGN(RentACodec); |