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

Issue 2481673004: media: Make sure we transition back to a non-loading state (Closed)

Created:
4 years, 1 month ago by hubbe
Modified:
4 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Make sure we transition back to a non-loading state An earilier bug-workaround kept the media in a loading state when a read operation was pending, but didn't always transition back to idle when the read operation was done. This CL fixes the problem by making sure that we check the loading state after read callbacks. These extra calls to check the loading state can in some cases cause us to miss progress callbacks. We fix this by allowing in-flight progress callbacks to complete even if reader_ has been destroyed. BUG=662615 Committed: https://crrev.com/a89cc8bcb5d204e3f42eb56d2db24837ba0d3a8a Cr-Commit-Position: refs/heads/master@{#430860}

Patch Set 1 #

Patch Set 2 : test added #

Patch Set 3 : merged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -16 lines) Patch
M media/blink/multibuffer_data_source.cc View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M media/blink/multibuffer_reader.cc View 1 chunk +5 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
hubbe
4 years, 1 month ago (2016-11-07 23:05:56 UTC) #3
sandersd (OOO until July 31)
lgtm.
4 years, 1 month ago (2016-11-07 23:38:55 UTC) #5
DaleCurtis
Leaks should have a test added.
4 years, 1 month ago (2016-11-07 23:42:40 UTC) #7
hubbe
Test added. PTAL.
4 years, 1 month ago (2016-11-08 21:50:45 UTC) #12
DaleCurtis
lgtm to land this as is, but it seems like something we should have a ...
4 years, 1 month ago (2016-11-08 21:53:24 UTC) #13
hubbe
On 2016/11/08 21:53:24, DaleCurtis wrote: > lgtm to land this as is, but it seems ...
4 years, 1 month ago (2016-11-08 21:58:23 UTC) #16
DaleCurtis
Ah, I thought the test case was reliable.
4 years, 1 month ago (2016-11-08 21:59:22 UTC) #17
hubbe
On 2016/11/08 21:59:22, DaleCurtis wrote: > Ah, I thought the test case was reliable. The ...
4 years, 1 month ago (2016-11-08 22:09:30 UTC) #18
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/2481673004/40001
4 years, 1 month ago (2016-11-09 00:19:15 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 04:28:55 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 04:33:01 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a89cc8bcb5d204e3f42eb56d2db24837ba0d3a8a
Cr-Commit-Position: refs/heads/master@{#430860}

Powered by Google App Engine
This is Rietveld 408576698