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

Issue 3001703002: Avoids WebRtcAudioTrack null pointer access at stop (Closed)

Created:
3 years, 4 months ago by henrika_webrtc
Modified:
3 years, 4 months ago
Reviewers:
AlexG
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoids WebRtcAudioTrack null pointer access at stop. Example of new stop sequence: PID TID 5155 5189 I WebRtcAudioTrack: stopPlayout 5155 5189 I WebRtcAudioTrack: underrun count: 0 5155 5189 I WebRtcAudioTrack: stopThread 5155 5189 I WebRtcAudioTrack: Stopping the AudioTrackThread... 5155 5236 I WebRtcAudioTrack: Stopping and flushing the audio track... 5155 5236 I WebRtcAudioTrack: The audio track has now been stopped. 5155 5189 I WebRtcAudioTrack: AudioTrackThread has now been stopped. 5155 5189 I WebRtcAudioTrack: releaseAudioResources BUG=b/64692432 Review-Url: https://codereview.webrtc.org/3001703002 Cr-Commit-Position: refs/heads/master@{#19370} Committed: https://chromium.googlesource.com/external/webrtc/+/c103653113ebe6dbe11e7455c2c4f500c1fbbf8b

Patch Set 1 #

Total comments: 4

Patch Set 2 : Feedback from Alex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java View 1 5 chunks +26 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
henrika_webrtc
PTAL
3 years, 4 months ago (2017-08-15 13:40:25 UTC) #4
AlexG
lgtm https://codereview.webrtc.org/3001703002/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java (right): https://codereview.webrtc.org/3001703002/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java#newcode178 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java:178: audioTrack.flush(); May be still call audioTrack.stop() after flush()? ...
3 years, 4 months ago (2017-08-15 18:15:33 UTC) #9
henrika_webrtc
Thanks Alex. Landing. Please confirm on your side that things work as intended. https://codereview.webrtc.org/3001703002/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java File ...
3 years, 4 months ago (2017-08-16 11:25:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/3001703002/20001
3 years, 4 months ago (2017-08-16 11:25:32 UTC) #13
commit-bot: I haz the power
3 years, 4 months ago (2017-08-16 13:14:13 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/c103653113ebe6dbe11e7455c...

Powered by Google App Engine
This is Rietveld 408576698