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 b7945b0921cc719cd25ccc7f6e35660ec1dbf275..97f3b810e9d64d467e164ce16b53946289c3dcf8 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 @@ |
// 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(std::unique_ptr<FrameType> frame) { |
- frames_[current_] = std::move(frame); |
+ void ReplaceCurrentFrame(FrameType* frame) { |
+ frames_[current_].reset(frame); |
} |
// Marks all frames obsolete and resets the previous frame pointer. No |