Index: webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc |
diff --git a/webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc b/webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc |
index 946b91e158e3179b5b3a1d8c435ac50d24afaf11..7e2a678a563f7883c5bab7415997ca90fb18935f 100644 |
--- a/webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc |
+++ b/webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc |
@@ -69,7 +69,7 @@ void GetForcedFallbackParamsFromFieldTrialGroup(uint32_t* param_low_kbps, |
VideoEncoderSoftwareFallbackWrapper::VideoEncoderSoftwareFallbackWrapper( |
const cricket::VideoCodec& codec, |
- webrtc::VideoEncoder* encoder) |
+ std::unique_ptr<webrtc::VideoEncoder> encoder) |
: number_of_cores_(0), |
max_payload_size_(0), |
rates_set_(false), |
@@ -78,7 +78,7 @@ VideoEncoderSoftwareFallbackWrapper::VideoEncoderSoftwareFallbackWrapper( |
packet_loss_(0), |
rtt_(0), |
codec_(codec), |
- encoder_(encoder), |
+ encoder_(std::move(encoder)), |
callback_(nullptr), |
forced_fallback_possible_(EnableForcedFallback(codec)) { |
if (forced_fallback_possible_) { |