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

Issue 1373443003: Modifies invalid DCHECK in AudioRecordJni::OnCacheDirectBufferAddress() (Closed)

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

Description

Modifies invalid DCHECK in AudioRecordJni::OnCacheDirectBufferAddress() Ensures that we can restart audio recording on Android without hitting a DCHECK. Also adds a symmetric design for the playout side. BUG=webrtc:5000 TEST=modules_unittests --gtest_filter=AudioDevice* Committed: https://crrev.com/82e20554cbf8152d67915e3ef764bad8064b6541 Cr-Commit-Position: refs/heads/master@{#10072}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Feedback from magjed@ #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M webrtc/modules/audio_device/android/audio_device_unittest.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_record_jni.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_track_jni.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
henrika_webrtc
PTAL
5 years, 2 months ago (2015-09-25 09:09:42 UTC) #2
magjed_webrtc
https://codereview.webrtc.org/1373443003/diff/1/webrtc/modules/audio_device/android/audio_record_jni.cc File webrtc/modules/audio_device/android/audio_record_jni.cc (left): https://codereview.webrtc.org/1373443003/diff/1/webrtc/modules/audio_device/android/audio_record_jni.cc#oldcode226 webrtc/modules/audio_device/android/audio_record_jni.cc:226: RTC_DCHECK(!direct_buffer_address_); Would it be possible to keep this check ...
5 years, 2 months ago (2015-09-25 09:18:24 UTC) #3
henrika_webrtc
Done. Added same approach on playout side as well. https://codereview.webrtc.org/1373443003/diff/1/webrtc/modules/audio_device/android/audio_record_jni.cc File webrtc/modules/audio_device/android/audio_record_jni.cc (left): https://codereview.webrtc.org/1373443003/diff/1/webrtc/modules/audio_device/android/audio_record_jni.cc#oldcode226 webrtc/modules/audio_device/android/audio_record_jni.cc:226: ...
5 years, 2 months ago (2015-09-25 09:26:46 UTC) #4
magjed_webrtc
lgtm if you update CL description. https://codereview.webrtc.org/1373443003/diff/20001/webrtc/modules/audio_device/android/audio_track_jni.cc File webrtc/modules/audio_device/android/audio_track_jni.cc (right): https://codereview.webrtc.org/1373443003/diff/20001/webrtc/modules/audio_device/android/audio_track_jni.cc#newcode220 webrtc/modules/audio_device/android/audio_track_jni.cc:220: direct_buffer_address_ = Add ...
5 years, 2 months ago (2015-09-25 09:54:07 UTC) #5
henrika_webrtc
https://codereview.webrtc.org/1373443003/diff/20001/webrtc/modules/audio_device/android/audio_track_jni.cc File webrtc/modules/audio_device/android/audio_track_jni.cc (right): https://codereview.webrtc.org/1373443003/diff/20001/webrtc/modules/audio_device/android/audio_track_jni.cc#newcode220 webrtc/modules/audio_device/android/audio_track_jni.cc:220: direct_buffer_address_ = On 2015/09/25 09:54:07, magjed_webrtc wrote: > Add ...
5 years, 2 months ago (2015-09-25 10:38:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373443003/40001
5 years, 2 months ago (2015-09-25 10:45:56 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-25 11:26:19 UTC) #10
commit-bot: I haz the power
5 years, 2 months ago (2015-09-25 11:26:28 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/82e20554cbf8152d67915e3ef764bad8064b6541
Cr-Commit-Position: refs/heads/master@{#10072}

Powered by Google App Engine
This is Rietveld 408576698