Skip to content

Commit

Permalink
Add missing DesktopConfigurationMonitor Unlock in webrtc::ScreenCaptu…
Browse files Browse the repository at this point in the history
…rerMac

BUG=3837
R=jiayl@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/30469004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7291 4adac7df-926f-26a2-2b94-8c16560cd09d
  • Loading branch information
jiayl@webrtc.org committed Sep 24, 2014
1 parent 3987b6d commit e1bba60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webrtc/modules/desktop_capture/screen_capturer_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ static void ScreenUpdateMoveCallback(CGScreenUpdateMoveDelta delta,
// Lion requires us to use their new APIs for doing screen capture. These
// APIS currently crash on 10.6.8 if there is no monitor attached.
if (!CgBlitPostLion(*current_frame, region)) {
desktop_config_monitor_->Unlock();
callback_->OnCaptureCompleted(NULL);
return;
}
Expand Down

0 comments on commit e1bba60

Please sign in to comment.