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

Issue 1312103006: MediaCodecPlayer - preroll and reconfiguration fixes (Closed)

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

Description

MediaCodecPlayer - preroll and reconfiguration fixes Now the decision to do preroll is controlled by two variables: the preroll timestamp, which is set by seek, and the MediaCodec state "is_prepared" - it is considered prepared after we got the output buffer. With these changes preroll won't be done again if the decoder is already prerolled (thus there might be a case where only one stream is prerolled, e.g. the one that is drained, for 2 streams A/V playback). Also the preroll timestamp is not reset when the preroll starts, only when it is done or flush happens. Added more unit tests for decoder reconfiguration. BUG=407577 Committed: https://crrev.com/4b000195a8d27e9c3c4bfdd77113674840286a48 Cr-Commit-Position: refs/heads/master@{#347780}

Patch Set 1 #

Patch Set 2 : Tests cleanup, added simultaneous config change unit test #

Patch Set 3 : Rebased #

Patch Set 4 : Added more unit tests #

Total comments: 8

Patch Set 5 : Addressed Min's comments, small changes in stop sequence #

Total comments: 8

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -166 lines) Patch
M media/base/android/media_codec_decoder.h View 1 2 3 4 5 4 chunks +5 lines, -14 lines 0 comments Download
M media/base/android/media_codec_decoder.cc View 1 2 3 4 5 12 chunks +35 lines, -27 lines 0 comments Download
M media/base/android/media_codec_player.cc View 1 2 3 4 5 7 chunks +21 lines, -27 lines 0 comments Download
M media/base/android/media_codec_player_unittest.cc View 1 2 3 4 5 16 chunks +411 lines, -98 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Tima Vaisburd
Min, I did write the variant with a separate Prepare() according to what we discussed. ...
5 years, 3 months ago (2015-09-02 02:34:58 UTC) #2
qinmin
https://codereview.chromium.org/1312103006/diff/60001/media/base/android/media_codec_decoder.cc File media/base/android/media_codec_decoder.cc (right): https://codereview.chromium.org/1312103006/diff/60001/media/base/android/media_codec_decoder.cc#newcode126 media/base/android/media_codec_decoder.cc:126: is_prepared_ = false; this variable is updated on both ...
5 years, 3 months ago (2015-09-03 05:30:04 UTC) #3
Tima Vaisburd
I also made two small changes related to stopping that look more correct to me. ...
5 years, 3 months ago (2015-09-03 19:55:27 UTC) #4
qinmin
lgtm
5 years, 3 months ago (2015-09-03 23:29:03 UTC) #5
Tima Vaisburd
5 years, 3 months ago (2015-09-04 06:18:14 UTC) #7
liberato (no reviews please)
lgtm % nits, just a few comments. https://codereview.chromium.org/1312103006/diff/80001/media/base/android/media_codec_decoder.cc File media/base/android/media_codec_decoder.cc (right): https://codereview.chromium.org/1312103006/diff/80001/media/base/android/media_codec_decoder.cc#newcode407 media/base/android/media_codec_decoder.cc:407: preroll_timestamp_ = ...
5 years, 3 months ago (2015-09-04 21:59:14 UTC) #8
liberato (no reviews please)
lgtm % nits, just a few comments. https://codereview.chromium.org/1312103006/diff/80001/media/base/android/media_codec_decoder.cc File media/base/android/media_codec_decoder.cc (right): https://codereview.chromium.org/1312103006/diff/80001/media/base/android/media_codec_decoder.cc#newcode407 media/base/android/media_codec_decoder.cc:407: preroll_timestamp_ = ...
5 years, 3 months ago (2015-09-04 21:59:14 UTC) #9
Tima Vaisburd
https://codereview.chromium.org/1312103006/diff/80001/media/base/android/media_codec_decoder.cc File media/base/android/media_codec_decoder.cc (right): https://codereview.chromium.org/1312103006/diff/80001/media/base/android/media_codec_decoder.cc#newcode407 media/base/android/media_codec_decoder.cc:407: preroll_timestamp_ = base::TimeDelta(); On 2015/09/04 21:59:13, liberato wrote: > ...
5 years, 3 months ago (2015-09-04 23:17:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312103006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312103006/100001
5 years, 3 months ago (2015-09-08 19:06:49 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-08 20:29:27 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 20:30:08 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4b000195a8d27e9c3c4bfdd77113674840286a48
Cr-Commit-Position: refs/heads/master@{#347780}

Powered by Google App Engine
This is Rietveld 408576698