Index: webrtc/modules/video_coding/codecs/test/videoprocessor.h |
diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor.h b/webrtc/modules/video_coding/codecs/test/videoprocessor.h |
index a217b1132ea378dc6053867a82a39c26366c5ce4..d5a8cca7cbd99314469c018178c7f2141721adb1 100644 |
--- a/webrtc/modules/video_coding/codecs/test/videoprocessor.h |
+++ b/webrtc/modules/video_coding/codecs/test/videoprocessor.h |
@@ -190,17 +190,17 @@ class VideoProcessorImpl : public VideoProcessor { |
// Return the number of spatial resizes. |
int NumberSpatialResizes() override; |
- webrtc::VideoEncoder* encoder_; |
- webrtc::VideoDecoder* decoder_; |
+ webrtc::VideoEncoder* const encoder_; |
+ webrtc::VideoDecoder* const decoder_; |
std::unique_ptr<VideoBitrateAllocator> bitrate_allocator_; |
- FrameReader* frame_reader_; |
- FrameWriter* frame_writer_; |
- PacketManipulator* packet_manipulator_; |
+ FrameReader* const frame_reader_; |
+ FrameWriter* const frame_writer_; |
+ PacketManipulator* const packet_manipulator_; |
const TestConfig& config_; |
Stats* stats_; |
- EncodedImageCallback* encode_callback_; |
- DecodedImageCallback* decode_callback_; |
+ std::unique_ptr<EncodedImageCallback> encode_callback_; |
+ std::unique_ptr<DecodedImageCallback> decode_callback_; |
// Keep track of the last successful frame, since we need to write that |
// when decoding fails: |
uint8_t* last_successful_frame_buffer_; |
brandtr
2017/02/09 13:40:59
Make |last_successful_frame_buffer_| a std::unique
åsapersson
2017/02/09 14:27:30
Done.
|