diff options
| author | Marco Nelissen <marcone@google.com> | 2018-06-19 12:38:23 -0700 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-06-21 00:58:05 +0000 |
| commit | 83f827e7d55d5a2bdf4bc01ad9e5cf960b1ccc20 (patch) | |
| tree | c81e19fa4bcf882c443a07c1f677ebcd1911a117 /docs/html/sdk/api_diff/20 | |
| parent | 2990141035d87028a7d31d8b0c3fbebc25fc2772 (diff) | |
Fix race condition in MediaHTTPConnection
getSize() and getMIMEType() rely on seekTo() having completed.
If seekTo() was called on a different thread, for example because
NuCachedSource2 was doing reads on a background thread, getSize()
could return -1 if it was called after connection was established,
but before the response had been parsed.
Bug: 110230427
Test: manual
Change-Id: I469b47e025f1c7a7ef3123d3347668f0541e6f2d
(cherry picked from commit d4f64f27b0de1c5d21c93b4d73acd05ede28fde2)
Diffstat (limited to 'docs/html/sdk/api_diff/20')
0 files changed, 0 insertions, 0 deletions
