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

Issue 2546263002: media: Continue aborting FFMpegDemuxerStream::Read() calls until Seek(). (Closed)

Created:
4 years ago by sandersd (OOO until July 31)
Modified:
4 years ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Continue aborting FFMpegDemuxerStream::Read() calls until Seek(). For decoders that support multiple in-flight decodes (ie. GpuVideoDecoder), it was possible to schedule a Read() after AbortPendingReads() but before Seek() was called. These reads were satisfied with data that decoders were not expecting (because the aborted buffers were fully dropped, there were gaps in the input). Now AbortPendingReads() is defined to continue to abort Read()s until Seek(), which solves the problem. ChunkDemuxer was already implementing this behavior, so only FFmpegDemuxer requires changes. BUG=667210 Committed: https://crrev.com/216002cff0b287035a57cacc510419e15e5217c9 Cr-Commit-Position: refs/heads/master@{#436428}

Patch Set 1 #

Total comments: 2

Patch Set 2 : return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M media/base/demuxer.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 3 chunks +8 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
sandersd (OOO until July 31)
4 years ago (2016-12-03 00:57:57 UTC) #2
DaleCurtis
https://codereview.chromium.org/2546263002/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/2546263002/diff/1/media/filters/ffmpeg_demuxer.cc#newcode648 media/filters/ffmpeg_demuxer.cc:648: base::ResetAndReturn(&read_cb_).Run(kAborted, nullptr); return;
4 years ago (2016-12-03 01:11:08 UTC) #5
sandersd (OOO until July 31)
https://codereview.chromium.org/2546263002/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/2546263002/diff/1/media/filters/ffmpeg_demuxer.cc#newcode648 media/filters/ffmpeg_demuxer.cc:648: base::ResetAndReturn(&read_cb_).Run(kAborted, nullptr); On 2016/12/03 01:11:08, DaleCurtis wrote: > return; ...
4 years ago (2016-12-03 01:15:18 UTC) #6
DaleCurtis
lgtm
4 years ago (2016-12-03 01:16:20 UTC) #9
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/2546263002/20001
4 years ago (2016-12-05 19:05:58 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-05 22:29:33 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-05 22:32:52 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/216002cff0b287035a57cacc510419e15e5217c9
Cr-Commit-Position: refs/heads/master@{#436428}

Powered by Google App Engine
This is Rietveld 408576698