| Index: webrtc/modules/desktop_capture/screen_capture_frame_queue.h
|
| diff --git a/webrtc/modules/desktop_capture/screen_capture_frame_queue.h b/webrtc/modules/desktop_capture/screen_capture_frame_queue.h
|
| index 97f3b810e9d64d467e164ce16b53946289c3dcf8..b7945b0921cc719cd25ccc7f6e35660ec1dbf275 100644
|
| --- a/webrtc/modules/desktop_capture/screen_capture_frame_queue.h
|
| +++ b/webrtc/modules/desktop_capture/screen_capture_frame_queue.h
|
| @@ -49,8 +49,8 @@ class ScreenCaptureFrameQueue {
|
|
|
| // Replaces the current frame with a new one allocated by the caller. The
|
| // existing frame (if any) is destroyed. Takes ownership of |frame|.
|
| - void ReplaceCurrentFrame(FrameType* frame) {
|
| - frames_[current_].reset(frame);
|
| + void ReplaceCurrentFrame(std::unique_ptr<FrameType> frame) {
|
| + frames_[current_] = std::move(frame);
|
| }
|
|
|
| // Marks all frames obsolete and resets the previous frame pointer. No
|
|
|