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

Issue 53413004: Clear any pending surface change prior to checking media crypto in MSP::ConfigureVideoDecoderJob() (Closed)

Created:
7 years, 1 month ago by wolenetz
Modified:
7 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Clear any pending surface change prior to checking media crypto in MSP::ConfigureVideoDecoderJob() Ensures that any valid invocation of ConfigureVideoDecoderJob with a pending surface change event causes the job to be reset and the surface change event cleared immediately, or after a possible browser seek. Also changes call from ConfigureVideoDecoderJob() to |manager_|->OnMediaMetaDataChanged() to only occur if new job was created. BUG=313470 R=xhwang@chromium.org,qinmin@chromium.org,acolwell@chromium.org TEST=all media_unittests pass on Android with MediaCodecBridge available and the new test fails prior to patching MSP Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232897

Patch Set 1 #

Total comments: 11

Patch Set 2 : Move job reset and clearing any pending surface change event after the browser seek logic #

Total comments: 1

Patch Set 3 : Addresses comments and adds a narrow unit test #

Total comments: 2

Patch Set 4 : add reference from new unit test to http://crbug.com/313860 #

Total comments: 4

Patch Set 5 : Address nits from PS4 #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -18 lines) Patch
M media/base/android/media_source_player.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M media/base/android/media_source_player.cc View 1 2 3 4 5 6 chunks +26 lines, -17 lines 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 2 3 4 5 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
wolenetz
PTAL: xhwang@: Does this fix http://crbug.com/313470? qinmin@: OWNERS review please. acolwell@: review if you wish, ...
7 years, 1 month ago (2013-10-31 02:56:28 UTC) #1
wolenetz
One question I forgot to ask earlier: https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc#newcode745 media/base/android/media_source_player.cc:745: video_decoder_job_.reset(); Note, ...
7 years, 1 month ago (2013-10-31 03:03:08 UTC) #2
qinmin
https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc#newcode745 media/base/android/media_source_player.cc:745: video_decoder_job_.reset(); Should be ok. If there is no media_crypto, ...
7 years, 1 month ago (2013-10-31 16:35:51 UTC) #3
acolwell GONE FROM CHROMIUM
Does this cause an externally visible change in behavior? (ie Can code outside MSP detect ...
7 years, 1 month ago (2013-10-31 18:11:27 UTC) #4
wolenetz
Thanks, qinmin@. All, PTAL @ PS2. https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc#newcode745 media/base/android/media_source_player.cc:745: video_decoder_job_.reset(); On 2013/10/31 ...
7 years, 1 month ago (2013-10-31 18:12:07 UTC) #5
qinmin
https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/53413004/diff/1/media/base/android/media_source_player.cc#newcode745 media/base/android/media_source_player.cc:745: video_decoder_job_.reset(); we always need to reset the vide_decoder_job if ...
7 years, 1 month ago (2013-10-31 18:32:37 UTC) #6
xhwang
I tested this CL and it fixes crbug.com/313470
7 years, 1 month ago (2013-10-31 18:50:15 UTC) #7
wolenetz
Next patch set will include updated unit test per chat with qinmin@. PTAL @ MSP.* ...
7 years, 1 month ago (2013-10-31 20:34:24 UTC) #8
wolenetz
PTAL @ PS4; I believe I've addressed all comments so far. Also note that the ...
7 years, 1 month ago (2013-10-31 21:19:16 UTC) #9
xhwang
lgtm MediaSourcePlayer::ConfigureVideoDecoderJob() is getting really complicated. If only we could simplify it somehow... https://codereview.chromium.org/53413004/diff/240001/media/base/android/media_source_player.cc File ...
7 years, 1 month ago (2013-10-31 21:37:18 UTC) #10
acolwell GONE FROM CHROMIUM
lgtm % nit https://codereview.chromium.org/53413004/diff/240001/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/53413004/diff/240001/media/base/android/media_source_player.cc#newcode782 media/base/android/media_source_player.cc:782: if (video_decoder_job_) { nit: reverse condition ...
7 years, 1 month ago (2013-10-31 21:45:07 UTC) #11
qinmin
lgtm
7 years, 1 month ago (2013-11-01 22:29:52 UTC) #12
wolenetz
Thanks for all the comments. After https://codereview.chromium.org/51613002/ lands, I'll rebase this and send to CQ. ...
7 years, 1 month ago (2013-11-02 00:00:56 UTC) #13
wolenetz
Thanks for all the comments. After https://codereview.chromium.org/51613002/ lands, I'll rebase this and send to CQ.
7 years, 1 month ago (2013-11-02 00:01:03 UTC) #14
wolenetz
On 2013/11/02 00:01:03, wolenetz wrote: > Thanks for all the comments. > After https://codereview.chromium.org/51613002/ lands, ...
7 years, 1 month ago (2013-11-04 18:54:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wolenetz@chromium.org/53413004/400001
7 years, 1 month ago (2013-11-04 18:59:35 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=218761
7 years, 1 month ago (2013-11-04 22:44:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wolenetz@chromium.org/53413004/400001
7 years, 1 month ago (2013-11-04 23:37:21 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wolenetz@chromium.org/53413004/400001
7 years, 1 month ago (2013-11-05 03:10:58 UTC) #19
commit-bot: I haz the power
7 years, 1 month ago (2013-11-05 04:13:47 UTC) #20
Message was sent while issue was closed.
Change committed as 232897

Powered by Google App Engine
This is Rietveld 408576698