- 04 Jul, 2014 2 commits
-
-
This can help custom ChunkSource implementations to act on this information. For example an adaptive implementation may choose to blacklist a problematic format if loads of that format keep failing.
Oliver Woodman committed -
Oliver Woodman committed
-
- 03 Jul, 2014 4 commits
-
-
AudioTrack time will go out of sync if the decodeOnly flag is set of arbitrary samples (as opposed to just those following a seek). It's a pretty obscure case and it would be weird for anyone to do it, but we should be robust against it anyway.
Oliver Woodman committed -
Oliver Woodman committed
-
Oliver Woodman committed
-
1. Fix SimpleCache startReadWrite asymmetry. Allow more concurrency. - startReadWrite does not have the concept of a read lock. Once a cached span is returned, the caller can do whatever it likes for as long as it wants to. This allows a read to be performed in parallel with a write that starts after it. - If there's an ongoing write, startReadWrite will block even if the return operation will be a read. So there's a weird asymmetry where reads can happen in parallel with writes, but only if the reads were started first. - This CL removes the asymmetry, by allowing a read to start even if the write lock is held. - Note that the reader needs to be prepared for the thing it's reading to disappear, but this was already the case, and will always be the case since the reader will need to handle disk read failures anyway. 2. Add isCached method.
Oliver Woodman committed
-
- 24 Jun, 2014 2 commits
-
-
Oliver Woodman committed
-
Oliver Woodman committed
-
- 16 Jun, 2014 1 commit
-
-
Oliver Woodman committed
-