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

Issue 2074983002: Immediately reset for vp8 when there's nothing to flush. (Closed)

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

Description

Immediately reset for vp8 when there's nothing to flush. If we finish playback of a clip up to end-of-stream, the codec is already Flush()'d so when we later recieve a Reset(), if we try to start another Flush() there is no event-pump driving the flush and we'll hang forever waiting for the flush that never was. The fix is to instead only flush when there are actually buffers in the decoder. If there are no buffers, there is nothing to flush. BUG=619967 TEST=looping video plays Committed: https://crrev.com/eec6e9013286349a66ace2ec0858c99e96132f46 Cr-Commit-Position: refs/heads/master@{#400338}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M media/gpu/android_video_decode_accelerator.cc View 1 chunk +2 lines, -1 line 3 comments Download

Messages

Total messages: 11 (3 generated)
DaleCurtis
4 years, 6 months ago (2016-06-16 22:45:31 UTC) #2
Tima Vaisburd
https://codereview.chromium.org/2074983002/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2074983002/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode1272 media/gpu/android_video_decode_accelerator.cc:1272: !bitstream_buffers_in_decoder_.empty()) { What if the decoder stalled, i.e. no ...
4 years, 6 months ago (2016-06-16 23:01:34 UTC) #3
DaleCurtis
https://codereview.chromium.org/2074983002/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2074983002/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode1272 media/gpu/android_video_decode_accelerator.cc:1272: !bitstream_buffers_in_decoder_.empty()) { On 2016/06/16 at 23:01:34, Tima Vaisburd wrote: ...
4 years, 6 months ago (2016-06-16 23:20:47 UTC) #4
Tima Vaisburd
Inital state feels more straightforward. lgtm https://codereview.chromium.org/2074983002/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2074983002/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode1272 media/gpu/android_video_decode_accelerator.cc:1272: !bitstream_buffers_in_decoder_.empty()) { On ...
4 years, 6 months ago (2016-06-16 23:47:29 UTC) #5
DaleCurtis
Lets save the state machine changes for MediaCodecLoop.
4 years, 6 months ago (2016-06-17 00:16:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2074983002/1
4 years, 6 months ago (2016-06-17 00:17:11 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-17 03:16:12 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 03:19:43 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/eec6e9013286349a66ace2ec0858c99e96132f46
Cr-Commit-Position: refs/heads/master@{#400338}

Powered by Google App Engine
This is Rietveld 408576698