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

Issue 1963343002: Report media error if PlayOutputBuffer failed (Closed)

Created:
4 years, 7 months ago by Tima Vaisburd
Modified:
4 years, 7 months ago
Reviewers:
watk, qinmin
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, avayvod+watch_chromium.org, mlamouri+watch-media_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report media error if PlayOutputBuffer failed Replace CHECK_EQ with a proper error reporting in MediaSourcePlayer and MediaCodecPlayer. This CL completes https://codereview.chromium.org/1764813002. For MediaSourcePlayer we report the error through the status that is passed with DecoderCallback. For MediaCodecPlayer the decoder's method Render() now returns bool. BUG=585978, 606061 Committed: https://crrev.com/68736c79b4c85fc95c321f1e4b5523a9e22dd1df Cr-Commit-Position: refs/heads/master@{#393124}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Do not override the status unless we got an error #

Total comments: 2

Patch Set 3 : Addressed Min's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -91 lines) Patch
M media/base/android/audio_decoder_job.h View 1 chunk +8 lines, -8 lines 0 comments Download
M media/base/android/audio_decoder_job.cc View 1 2 2 chunks +42 lines, -35 lines 0 comments Download
M media/base/android/audio_media_codec_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/audio_media_codec_decoder.cc View 4 chunks +11 lines, -6 lines 0 comments Download
M media/base/android/media_codec_decoder.h View 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/android/media_codec_decoder.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M media/base/android/media_decoder_job.h View 2 chunks +2 lines, -8 lines 0 comments Download
M media/base/android/media_decoder_job.cc View 2 chunks +6 lines, -10 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 chunk +4 lines, -1 line 0 comments Download
M media/base/android/video_decoder_job.h View 1 chunk +8 lines, -8 lines 0 comments Download
M media/base/android/video_decoder_job.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/android/video_media_codec_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/video_media_codec_decoder.cc View 4 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Tima Vaisburd
PTAL (not tested yet).
4 years, 7 months ago (2016-05-10 22:18:57 UTC) #4
qinmin
https://codereview.chromium.org/1963343002/diff/1/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://codereview.chromium.org/1963343002/diff/1/media/base/android/audio_decoder_job.cc#newcode118 media/base/android/audio_decoder_job.cc:118: status = (static_cast<AudioCodecBridge*>(media_codec_bridge_.get())) The input status could be MEDIA_CODEC_OUTPUT_FORMAT_CHANGED ...
4 years, 7 months ago (2016-05-10 22:43:23 UTC) #5
Tima Vaisburd
https://codereview.chromium.org/1963343002/diff/1/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://codereview.chromium.org/1963343002/diff/1/media/base/android/audio_decoder_job.cc#newcode118 media/base/android/audio_decoder_job.cc:118: status = (static_cast<AudioCodecBridge*>(media_codec_bridge_.get())) On 2016/05/10 22:43:23, qinmin wrote: > ...
4 years, 7 months ago (2016-05-10 23:19:56 UTC) #6
watk
lgtm
4 years, 7 months ago (2016-05-10 23:35:53 UTC) #7
Tima Vaisburd
On 2016/05/10 23:35:53, watk wrote: > lgtm Min, would you like to add more comments?
4 years, 7 months ago (2016-05-11 18:14:24 UTC) #8
qinmin
lgtm % nit https://codereview.chromium.org/1963343002/diff/20001/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://codereview.chromium.org/1963343002/diff/20001/media/base/android/audio_decoder_job.cc#newcode115 media/base/android/audio_decoder_job.cc:115: const bool postpone = false; nit:I ...
4 years, 7 months ago (2016-05-11 20:58:29 UTC) #9
Tima Vaisburd
https://codereview.chromium.org/1963343002/diff/20001/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://codereview.chromium.org/1963343002/diff/20001/media/base/android/audio_decoder_job.cc#newcode115 media/base/android/audio_decoder_job.cc:115: const bool postpone = false; On 2016/05/11 20:58:29, qinmin ...
4 years, 7 months ago (2016-05-11 22:24:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963343002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963343002/40001
4 years, 7 months ago (2016-05-11 22:25:00 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-12 00:51:13 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 00:52:52 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/68736c79b4c85fc95c321f1e4b5523a9e22dd1df
Cr-Commit-Position: refs/heads/master@{#393124}

Powered by Google App Engine
This is Rietveld 408576698