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

Issue 2477323003: Stop suspending the pipeline before HaveFutureData while decoding (Closed)

Created:
4 years, 1 month ago by watk
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

Stop suspending the pipeline before HaveFutureData while decoding Previously we could suspend the pipeline before HaveFutureData but after the media had been completely loaded, relying on the assumption that we could use the signal of didLoadingProgress() to resume and check if the new data got us to HaveFutureData. However, if the media is completely downloaded, there will be no more didLoadingProgress() calls which meant we could leave the player suspended forever. Now we check whether loading is stalled (didLoadingProgress() has not returned true for least 3 seconds) before suspending before HaveFutureData. If loading is stalled but we haven't reached HaveFutureData we assume that the pipeline is waiting for more data to complete preroll. BUG=655630 TEST=new tests Review-Url: https://codereview.chromium.org/2445533002 Cr-Commit-Position: refs/heads/master@{#430086} (cherry picked from commit d026f79cc5949df6bae399f58128b470f8061ad7) Committed: https://chromium.googlesource.com/chromium/src/+/7aae49babcf9acaa0f549fc5d996945a8aba192d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -245 lines) Patch
M content/renderer/media/android/webmediaplayer_android.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc View 9 chunks +115 lines, -198 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_delegate.h View 1 chunk +4 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.h View 3 chunks +7 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 4 chunks +36 lines, -4 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 21 chunks +60 lines, -30 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
watk
4 years, 1 month ago (2016-11-07 19:55:58 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
7aae49babcf9acaa0f549fc5d996945a8aba192d.

Powered by Google App Engine
This is Rietveld 408576698