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

Issue 10837212: OMX: Don't try to send buffers when in resetting state. (Closed)

Created:
8 years, 4 months ago by marcheu
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Base URL:
https://git.chromium.org/git/chromium/src@git-svn
Visibility:
Public.

Description

OMX: Don't try to send buffers when in resetting state. If we do this, the OMX_FillThisBuffer function will fail, and will put the OMX class in error mode. Then resource freeing will not happen. This is especially annoying since this can happen during Destroy and leads to resource leaks. BUG=chrome-os-partner:12316 TEST=by hand: play a video, look for buffer leaks. Change-Id: If14311d188f1a2048c11b5bb6186dbf5fc20c1f5 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151396

Patch Set 1 #

Total comments: 6

Patch Set 2 : Also handle the case of destroy/error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M content/common/gpu/media/omx_video_decode_accelerator.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
marcheu
8 years, 4 months ago (2012-08-11 03:07:44 UTC) #1
Ami GONE FROM CHROMIUM
LGTM % nits Nice catch! https://chromiumcodereview.appspot.com/10837212/diff/1/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/10837212/diff/1/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode367 content/common/gpu/media/omx_video_decode_accelerator.cc:367: if (current_state_change_ == RESETTING) ...
8 years, 4 months ago (2012-08-11 04:29:00 UTC) #2
piman
LGTM if Ami/Pawel are happy
8 years, 4 months ago (2012-08-11 04:51:49 UTC) #3
marcheu
https://chromiumcodereview.appspot.com/10837212/diff/1/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/10837212/diff/1/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode367 content/common/gpu/media/omx_video_decode_accelerator.cc:367: if (current_state_change_ == RESETTING) On 2012/08/11 04:29:00, Ami Fischman ...
8 years, 4 months ago (2012-08-13 19:23:04 UTC) #4
Ami GONE FROM CHROMIUM
still LGTM :)
8 years, 4 months ago (2012-08-13 21:38:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marcheu@chromium.org/10837212/6001
8 years, 4 months ago (2012-08-13 21:40:19 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 00:10:52 UTC) #7
Change committed as 151396

Powered by Google App Engine
This is Rietveld 408576698