[media] Enable ChunkDemuxer to signal OnProgress events

Desktop / Chromium - Dan Sanders [chromium.org] - 10 August 2017 19:41 EDT

This adds a callback to ChunkDemuxer to signal WMPI::OnProgress() when data is appended, as is already done by the data source for src=.

This fixes an issue introduced by commit b2d3efd2ec18ffd52c3dacfece9862366b565a3d, where MSE sources that do not have enough data to complete preroll may be suspended forever.

Bug: 754043 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ie36658a678a22ed394a8d29e2d3316df9aa8d60b Reviewed-on: https://chromium-review.googlesource.com/611002

42311b5 [media] Enable ChunkDemuxer to signal OnProgress events.
media/blink/webmediaplayer_impl.cc | 2 ++
media/blink/webmediaplayer_impl.h | 3 ++-
media/filters/chunk_demuxer.cc | 3 +++
media/filters/chunk_demuxer.h | 5 ++++-
media/filters/chunk_demuxer_unittest.cc | 23 ++++++++++++++++++++---
media/test/mock_media_source.cc | 3 +++
6 files changed, 34 insertions(+), 5 deletions(-)

Upstream: git.chromium.org


  • Share