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

Issue 2556983002: Fix SetStreamTextureSize crash (Closed)

Created:
4 years ago by tguilbert
Modified:
4 years ago
Reviewers:
watk
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, mlamouri+watch-media_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SetStreamTextureSize crash We currently do not properly report initialization failures in the StreamTextureWrapperImpl. This means that we can be left in a state where the |stream_texture_proxy_| is null after initialization. This change modifies the MediaPlayerRendererClient's init sequence to properly error out early and abort initialization when we are not able to create a StreamTextureProxy. It also adds a safeguard to avoid a null dereference in StreamTextureWrapperImpl::UpdateTextureSize(). BUG=671358 TEST=Manualy verified playing HLS still works. Committed: https://crrev.com/08543d080630ba84936851881fecd2dd37e889be Cr-Commit-Position: refs/heads/master@{#437060}

Patch Set 1 #

Patch Set 2 : Style changes #

Total comments: 6

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -19 lines) Patch
M content/renderer/media/android/media_player_renderer_client.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/media/android/media_player_renderer_client.cc View 1 2 chunks +12 lines, -5 lines 0 comments Download
M content/renderer/media/android/stream_texture_wrapper_impl.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/media/android/stream_texture_wrapper_impl.cc View 1 2 3 chunks +10 lines, -7 lines 0 comments Download
M media/base/android/stream_texture_wrapper.h View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 20 (14 generated)
tguilbert
PTAL :) Thanks! Thomas
4 years ago (2016-12-07 00:40:02 UTC) #6
watk
lgtm https://codereview.chromium.org/2556983002/diff/20001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2556983002/diff/20001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode132 content/renderer/media/android/stream_texture_wrapper_impl.cc:132: // InitializeOnMainThread() hasn't completed, or failed. nit: "hasn't ...
4 years ago (2016-12-07 01:48:11 UTC) #9
tguilbert
Thank you! Submitting. https://codereview.chromium.org/2556983002/diff/20001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2556983002/diff/20001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode132 content/renderer/media/android/stream_texture_wrapper_impl.cc:132: // InitializeOnMainThread() hasn't completed, or failed. ...
4 years ago (2016-12-07 19:23:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2556983002/40001
4 years ago (2016-12-07 19:24:47 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-07 21:17:07 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-07 21:20:38 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/08543d080630ba84936851881fecd2dd37e889be
Cr-Commit-Position: refs/heads/master@{#437060}

Powered by Google App Engine
This is Rietveld 408576698