Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Unified Diff: trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm

Issue 126883005: Revert 242936 "When stopping QTKit video capture, call stopRunni..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm
===================================================================
--- trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm (revision 243443)
+++ trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm (working copy)
@@ -219,10 +219,8 @@
- (void)stopCapture {
if ([[captureSession_ inputs] count] == 1) {
- // |stopRunning| must be called before |removeInput:| to avoid a deadlock
- // with device enumeration when the active camera is unplugged.
+ [captureSession_ removeInput:captureDeviceInput_];
[captureSession_ stopRunning];
- [captureSession_ removeInput:captureDeviceInput_];
}
[[NSNotificationCenter defaultCenter] removeObserver:self];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698