Chromium Code Reviews| Index: remoting/host/capturer_mac.cc |
| diff --git a/remoting/host/capturer_mac.cc b/remoting/host/capturer_mac.cc |
| index 5e7b217dd9a30968b47a87b71ea2e163cad4eb38..a4ee518a57d1e661c8f6898b1eb79464948de699 100644 |
| --- a/remoting/host/capturer_mac.cc |
| +++ b/remoting/host/capturer_mac.cc |
| @@ -228,8 +228,11 @@ CapturerMac::~CapturerMac() { |
| ReleaseBuffers(); |
| CGUnregisterScreenRefreshCallback(CapturerMac::ScreenRefreshCallback, this); |
| CGScreenUnregisterMoveCallback(CapturerMac::ScreenUpdateMoveCallback, this); |
| - CGDisplayRemoveReconfigurationCallback( |
| + CGError err = CGDisplayRemoveReconfigurationCallback( |
| CapturerMac::DisplaysReconfiguredCallback, this); |
| + if (err != kCGErrorSuccess) { |
| + LOG(ERROR) << "CGDisplayRemoveReconfigurationCallback " << err; |
|
Jamie
2011/10/31 22:17:47
I'm never convinced by how useful this sort of err
|
| + } |
| } |
| bool CapturerMac::Init() { |