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

Issue 1425143005: Call MediaCodec.stop() on separate thread. (Closed)

Created:
5 years, 1 month ago by AlexG
Modified:
5 years, 1 month ago
Reviewers:
magjed_webrtc
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Call MediaCodec.stop() on separate thread. MediaCodec.stop() call may hang in some rear cases. To avoid application hang this call need to be done on separate thread and possible error reported back to application. Application may elect to continue executing and use another codec instance for encoding/decoding or stop the call and exit. BUG=b/24339249 R=magjed@webrtc.org Committed: https://crrev.com/5c3da4b6e9bdc787a3c1f25c0ff0c16a4271fd26 Cr-Commit-Position: refs/heads/master@{#10467}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -16 lines) Patch
M talk/app/webrtc/java/android/org/webrtc/ThreadUtils.java View 1 2 chunks +26 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java View 1 5 chunks +47 lines, -7 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoEncoder.java View 1 5 chunks +47 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
AlexG
PTAL
5 years, 1 month ago (2015-10-29 23:52:43 UTC) #2
magjed_webrtc
https://codereview.webrtc.org/1425143005/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1425143005/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode74 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:74: private static MediaCodecVideoDecoderErrorCallback errorCallback = null; We signal other ...
5 years, 1 month ago (2015-10-30 14:01:57 UTC) #3
AlexG
PTAL https://codereview.webrtc.org/1425143005/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1425143005/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode74 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:74: private static MediaCodecVideoDecoderErrorCallback errorCallback = null; On 2015/10/30 ...
5 years, 1 month ago (2015-10-30 20:07:59 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425143005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425143005/20001
5 years, 1 month ago (2015-10-30 20:32:49 UTC) #6
magjed_webrtc
Alright, ship it. lgtm https://codereview.webrtc.org/1425143005/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java File talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java (right): https://codereview.webrtc.org/1425143005/diff/1/talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java#newcode319 talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java:319: releaseDone.wait(MEDIA_CODEC_RELEASE_TIMEOUT_MS); On 2015/10/30 20:07:58, AlexG ...
5 years, 1 month ago (2015-10-30 21:50:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425143005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425143005/20001
5 years, 1 month ago (2015-10-30 21:55:33 UTC) #10
AlexG
Committed patchset #2 (id:20001) manually as 5c3da4b6e9bdc787a3c1f25c0ff0c16a4271fd26 (presubmit successful).
5 years, 1 month ago (2015-10-30 22:31:30 UTC) #11
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 22:31:31 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5c3da4b6e9bdc787a3c1f25c0ff0c16a4271fd26
Cr-Commit-Position: refs/heads/master@{#10467}

Powered by Google App Engine
This is Rietveld 408576698