Descriptionmedia: 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 #
Messages
Total messages: 28 (17 generated)
|