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

Unified Diff: webrtc/media/engine/videodecodersoftwarefallbackwrapper.cc

Issue 3009973002: Prepare for injectable SW decoders (Closed)
Patch Set: Remove wrapping in AllocatedDecoder struct Created 3 years, 3 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/media/engine/videodecodersoftwarefallbackwrapper.cc
diff --git a/webrtc/media/engine/videodecodersoftwarefallbackwrapper.cc b/webrtc/media/engine/videodecodersoftwarefallbackwrapper.cc
index 6a234d54de0d1e068d12684f38e0ad2e8162ec8c..0e7632ba1406e89f0214afed9633ed7c4d5a11e4 100644
--- a/webrtc/media/engine/videodecodersoftwarefallbackwrapper.cc
+++ b/webrtc/media/engine/videodecodersoftwarefallbackwrapper.cc
@@ -22,9 +22,9 @@ namespace webrtc {
VideoDecoderSoftwareFallbackWrapper::VideoDecoderSoftwareFallbackWrapper(
VideoCodecType codec_type,
- VideoDecoder* decoder)
+ std::unique_ptr<VideoDecoder> decoder)
: codec_type_(codec_type),
- decoder_(decoder),
+ decoder_(std::move(decoder)),
decoder_initialized_(false),
callback_(nullptr) {}

Powered by Google App Engine
This is Rietveld 408576698