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

Issue 10905134: use lock to make sure device will not deliver any frame after it's stopped. (Closed)

Created:
8 years, 3 months ago by wjia(left Chromium)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

use lock to make sure device will not deliver any frame after it's stopped. BUG=139004 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155250

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M media/video/capture/mac/video_capture_device_mac.h View 2 chunks +2 lines, -0 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 3 chunks +10 lines, -2 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
wjia(left Chromium)
8 years, 3 months ago (2012-09-06 18:09:45 UTC) #1
Ronghua Wu (Left Chromium)
Don't have a better idea other than the lock. Hopefully this will fix the problem. ...
8 years, 3 months ago (2012-09-06 20:48:38 UTC) #2
wjia(left Chromium)
8 years, 3 months ago (2012-09-06 20:59:15 UTC) #3
https://chromiumcodereview.appspot.com/10905134/diff/1/media/video/capture/ma...
File media/video/capture/mac/video_capture_device_mac.mm (right):

https://chromiumcodereview.appspot.com/10905134/diff/1/media/video/capture/ma...
media/video/capture/mac/video_capture_device_mac.mm:130: state_ = kIdle;
On 2012/09/06 20:48:38, Ronghua Wu wrote:
> Do we need the lock here?

Init() is called only when the instance is created. There would be no racing
here.

Powered by Google App Engine
This is Rietveld 408576698