commit | d4f64f27b0de1c5d21c93b4d73acd05ede28fde2 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Tue Jun 19 12:38:23 2018 -0700 |
committer | Marco Nelissen <marcone@google.com> | Wed Jun 20 07:42:05 2018 -0700 |
tree | 3c7016e9d4d7e0b2fa9e8dcab01edba76edb14fa | |
parent | c5901f5a06884da28d89bf79d54a1d729acb8dec [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