Index: webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc |
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc |
index 8af9779ce80e02f7774f7e5c9fbfb881b3ab5ffc..4bcd4d1918d04f5b6ff0986b2edffcb285e29f3a 100644 |
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc |
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc |
@@ -433,7 +433,7 @@ void ScreenCapturerWinMagnifier::CreateCurrentFrameIfNecessary( |
? SharedMemoryDesktopFrame::Create(size, |
shared_memory_factory_.get()) |
: std::unique_ptr<DesktopFrame>(new BasicDesktopFrame(size)); |
- queue_.ReplaceCurrentFrame(frame.release()); |
+ queue_.ReplaceCurrentFrame(SharedDesktopFrame::Wrap(frame.release())); |
} |
} |