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

Issue 1806013003: SurfaceTextureHelper: Fix startListening()/stopListening() race (Closed)

Created:
4 years, 9 months ago by magjed_webrtc
Modified:
4 years, 9 months ago
Reviewers:
perkj_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

SurfaceTextureHelper: Fix startListening()/stopListening() race SurfaceTextureHelper.startListening() is asynchronous and posts a Runnable to the handler thread. If stopListening() is called before that Runnable is executed, the Runnable will set the listener after stopListening() has been called. Then the next call to startListening() will fail with "SurfaceTextureHelper listener has already been set." This CL adds a test to reproduce this bug, and a fix. BUG=5519 ,b/27677772 Committed: https://crrev.com/d8ddb796e44b0773d3e6e65b6d1ee7b05d524129 Cr-Commit-Position: refs/heads/master@{#12030}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -13 lines) Patch
M webrtc/api/androidtests/src/org/webrtc/SurfaceTextureHelperTest.java View 2 chunks +40 lines, -4 lines 0 comments Download
M webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java View 4 chunks +20 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
magjed1
perkj - Please take a look.
4 years, 9 months ago (2016-03-17 08:24:37 UTC) #5
perkj_webrtc
lgtm
4 years, 9 months ago (2016-03-17 08:39:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1806013003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1806013003/1
4 years, 9 months ago (2016-03-17 08:39:32 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-17 10:13:46 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 10:13:53 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d8ddb796e44b0773d3e6e65b6d1ee7b05d524129
Cr-Commit-Position: refs/heads/master@{#12030}

Powered by Google App Engine
This is Rietveld 408576698