Index: webrtc/media/engine/videodecodersoftwarefallbackwrapper.h |
diff --git a/webrtc/media/engine/videodecodersoftwarefallbackwrapper.h b/webrtc/media/engine/videodecodersoftwarefallbackwrapper.h |
index 3984e1f1cc5e9d271328ffc1f935609cf46e471b..72c6da55a3bf7c1527d39d4fbfb9deafe4f5cd61 100644 |
--- a/webrtc/media/engine/videodecodersoftwarefallbackwrapper.h |
+++ b/webrtc/media/engine/videodecodersoftwarefallbackwrapper.h |
@@ -21,10 +21,10 @@ namespace webrtc { |
// Class used to wrap external VideoDecoders to provide a fallback option on |
// software decoding when a hardware decoder fails to decode a stream due to |
// hardware restrictions, such as max resolution. |
-class VideoDecoderSoftwareFallbackWrapper : public webrtc::VideoDecoder { |
+class VideoDecoderSoftwareFallbackWrapper : public VideoDecoder { |
public: |
- VideoDecoderSoftwareFallbackWrapper(VideoCodecType codec_type, |
- VideoDecoder* decoder); |
+ VideoDecoderSoftwareFallbackWrapper(const VideoCodecType codec_type, |
magjed_webrtc
2017/09/01 11:15:04
nit: We send small objects like ints and enums by-
andersc
2017/09/01 12:43:45
Acknowledged.
|
+ std::unique_ptr<VideoDecoder> decoder); |
int32_t InitDecode(const VideoCodec* codec_settings, |
int32_t number_of_cores) override; |
@@ -47,7 +47,7 @@ class VideoDecoderSoftwareFallbackWrapper : public webrtc::VideoDecoder { |
bool InitFallbackDecoder(); |
const VideoCodecType codec_type_; |
- VideoDecoder* const decoder_; |
+ std::unique_ptr<VideoDecoder> decoder_; |
bool decoder_initialized_; |
VideoCodec codec_settings_; |