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

Issue 1639583003: Fixing bug in MediaStream.java that caused double disposal of track. (Closed)

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

Description

Fixing bug in MediaStream.java that caused double disposal of track. Also fixing an issue with the Java PeerConnection unit test. It wasn't correctly waiting for 10 video frames to be received. And fixed an issue with the video engine, where generated black frames don't get any rotation. BUG=webrtc:5128 Committed: https://crrev.com/6ecee07bab2ad781de8877d6d40c8f540973170d Cr-Commit-Position: refs/heads/master@{#11583}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Changing removeTrack methods instead of dispose(). #

Patch Set 3 : Creating a new Java test method. #

Total comments: 2

Patch Set 4 : Making removeTrack even simpler #

Patch Set 5 : Fixing issues with expected resolution in Java test. #

Patch Set 6 : Rebasing, and fixing issue where black frames aren't rotated. #

Patch Set 7 : Removing extra whitespace #

Patch Set 8 : Merging with master due to move of talk directory. #

Patch Set 9 : Fixing placement of GUARDED_BY. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -45 lines) Patch
M webrtc/api/androidtests/src/org/webrtc/PeerConnectionTest.java View 1 2 3 4 5 6 7 14 chunks +265 lines, -29 lines 0 comments Download
M webrtc/api/java/src/org/webrtc/MediaStream.java View 1 2 3 4 5 6 7 1 chunk +5 lines, -11 lines 0 comments Download
M webrtc/media/webrtc/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/media/webrtc/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
Taylor Brandstetter
PTAL. The issue is that if removeTrack fails, the track is kept in the list, ...
4 years, 10 months ago (2016-01-26 21:52:14 UTC) #2
AlexG
https://codereview.webrtc.org/1639583003/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaStream.java File talk/app/webrtc/java/src/org/webrtc/MediaStream.java (right): https://codereview.webrtc.org/1639583003/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaStream.java#newcode96 talk/app/webrtc/java/src/org/webrtc/MediaStream.java:96: audioTracks.remove(track); May be call audioTracks.remove() from removeTrack() when nativeRemoveAudioTrack() ...
4 years, 10 months ago (2016-01-26 22:03:36 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/1639583003/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaStream.java File talk/app/webrtc/java/src/org/webrtc/MediaStream.java (right): https://codereview.webrtc.org/1639583003/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaStream.java#newcode96 talk/app/webrtc/java/src/org/webrtc/MediaStream.java:96: audioTracks.remove(track); On 2016/01/26 22:03:36, AlexG wrote: > May be ...
4 years, 10 months ago (2016-01-26 22:43:10 UTC) #4
AlexG
lgtm https://codereview.webrtc.org/1639583003/diff/40001/talk/app/webrtc/java/src/org/webrtc/MediaStream.java File talk/app/webrtc/java/src/org/webrtc/MediaStream.java (right): https://codereview.webrtc.org/1639583003/diff/40001/talk/app/webrtc/java/src/org/webrtc/MediaStream.java#newcode75 talk/app/webrtc/java/src/org/webrtc/MediaStream.java:75: boolean ret = nativeRemoveAudioTrack(nativeStream, track.nativeTrack); nit: a little ...
4 years, 10 months ago (2016-01-26 23:03:55 UTC) #5
Taylor Brandstetter
https://codereview.webrtc.org/1639583003/diff/40001/talk/app/webrtc/java/src/org/webrtc/MediaStream.java File talk/app/webrtc/java/src/org/webrtc/MediaStream.java (right): https://codereview.webrtc.org/1639583003/diff/40001/talk/app/webrtc/java/src/org/webrtc/MediaStream.java#newcode75 talk/app/webrtc/java/src/org/webrtc/MediaStream.java:75: boolean ret = nativeRemoveAudioTrack(nativeStream, track.nativeTrack); On 2016/01/26 23:03:55, AlexG ...
4 years, 10 months ago (2016-01-27 17:36:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639583003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639583003/60001
4 years, 10 months ago (2016-01-27 17:36:35 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_libfuzzer_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_libfuzzer_rel/builds/627)
4 years, 10 months ago (2016-01-27 18:06:25 UTC) #11
Taylor Brandstetter
I made some changes to the unit test; could you review again? An issue I ...
4 years, 10 months ago (2016-01-28 21:03:44 UTC) #13
AlexG
On 2016/01/28 21:03:44, Taylor Brandstetter wrote: > I made some changes to the unit test; ...
4 years, 10 months ago (2016-02-01 20:50:15 UTC) #14
AlexG
On 2016/02/01 20:50:15, AlexG wrote: > On 2016/01/28 21:03:44, Taylor Brandstetter wrote: > > I ...
4 years, 10 months ago (2016-02-01 20:52:43 UTC) #15
Taylor Brandstetter
I rebased after the test was moved (thanks for the heads up, Alex). pbos: Could ...
4 years, 10 months ago (2016-02-08 19:48:09 UTC) #16
Taylor Brandstetter
Forgot to add pbos. See: https://codereview.webrtc.org/1639583003/#msg15
4 years, 10 months ago (2016-02-08 20:45:15 UTC) #20
pbos-webrtc
On 2016/02/08 20:45:15, Taylor Brandstetter wrote: > Forgot to add pbos. See: https://codereview.webrtc.org/1639583003/#msg15 I assume ...
4 years, 10 months ago (2016-02-10 19:17:59 UTC) #21
Taylor Brandstetter
On 2016/02/10 19:17:59, pbos-webrtc wrote: > On 2016/02/08 20:45:15, Taylor Brandstetter wrote: > > Forgot ...
4 years, 10 months ago (2016-02-10 19:44:56 UTC) #22
pbos-webrtc
On 2016/02/10 19:44:56, Taylor Brandstetter wrote: > On 2016/02/10 19:17:59, pbos-webrtc wrote: > > On ...
4 years, 10 months ago (2016-02-10 20:04:13 UTC) #23
Taylor Brandstetter
On 2016/02/10 20:04:13, pbos-webrtc wrote: > On 2016/02/10 19:44:56, Taylor Brandstetter wrote: > > On ...
4 years, 10 months ago (2016-02-10 20:07:37 UTC) #24
pbos-webrtc
On 2016/02/10 20:07:37, Taylor Brandstetter wrote: > On 2016/02/10 20:04:13, pbos-webrtc wrote: > > On ...
4 years, 10 months ago (2016-02-10 20:15:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639583003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639583003/140001
4 years, 10 months ago (2016-02-10 21:21:57 UTC) #28
commit-bot: I haz the power
Exceeded global retry quota
4 years, 10 months ago (2016-02-10 21:23:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639583003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639583003/160001
4 years, 10 months ago (2016-02-11 17:35:41 UTC) #33
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-11 17:57:27 UTC) #35
commit-bot: I haz the power
4 years, 10 months ago (2016-02-11 17:57:43 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6ecee07bab2ad781de8877d6d40c8f540973170d
Cr-Commit-Position: refs/heads/master@{#11583}

Powered by Google App Engine
This is Rietveld 408576698