Closed
Bug 1046275
Opened 10 years ago
Closed 10 years ago
Concurrency issues in Android WebRTC code
Categories
(Core :: WebRTC: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: gcp, Assigned: gcp)
Details
Attachments
(1 file)
5.53 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
https://bugzilla.mozilla.org/show_bug.cgi?id=1039898#c94 hat said, I think we agree there's 2 issues we need to deal with: 1) mCaptureRotation should be volatile, to *ensure* the cross-thread writes are eventually seen. 2) The native code can call stopCapture and we can simultaneously get onPause. onPause checks for the camera being null before calling stopCapture (and sets mResumeCapture), but the other call can already be in stopCapture at that point, and nulling camera. That would produce bug 1042689. Whether mCaptureWidth,H,MinFps,MaxFps have a similar possibility depends on whether onResume can race with startCapture. I'm not clear if the native call to startCapture can happen *before* onResume is called because onResume implies we're paused, but we should probably make onResume synchronized regardless.
Assignee | ||
Comment 1•10 years ago
|
||
Also get rid of that inner class so I can keep my privates. I'm fond of them.
Attachment #8466211 -
Flags: review?(rnewman)
Comment 2•10 years ago
|
||
Comment on attachment 8466211 [details] [diff] [review] Patch 1. Fix concurrency issues Review of attachment 8466211 [details] [diff] [review]: ----------------------------------------------------------------- lgtm!
Attachment #8466211 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f8785a729a51
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f8785a729a51
Assignee: nobody → gpascutto
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•