diff options
author | Martin Storsjo <martin@martin.st> | 2013-11-22 18:11:58 +0200 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2013-11-25 14:52:51 +0200 |
commit | 0c9045e42eebdfcfeb1d372e932f043bb99f7ad9 (patch) | |
tree | 869cb52069bca2deca4b3a5d3e8a3f0c518ac223 /media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp | |
parent | 5bf2560ce9b70bee077e0c264ac06648f0f63acc (diff) | |
download | frameworks_av-0c9045e42eebdfcfeb1d372e932f043bb99f7ad9.zip frameworks_av-0c9045e42eebdfcfeb1d372e932f043bb99f7ad9.tar.gz frameworks_av-0c9045e42eebdfcfeb1d372e932f043bb99f7ad9.tar.bz2 |
ChromiumHTTPDataSource: Keep track of the redirected URL
This makes the code actually match an existing comment in
DrmInitialization, which claimed that mURI was the redirected
URL and not the original one.
Change-Id: I0a5cc65f520f1482ff91320ae78af84a8a681ee3
Diffstat (limited to 'media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp')
-rw-r--r-- | media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp b/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp index a862d8b..7e5c280 100644 --- a/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp +++ b/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp @@ -108,6 +108,11 @@ status_t ChromiumHTTPDataSource::connect_l( return mState == CONNECTED ? OK : mIOResult; } +void ChromiumHTTPDataSource::onRedirect(const char *url) { + Mutex::Autolock autoLock(mLock); + mURI = url; +} + void ChromiumHTTPDataSource::onConnectionEstablished( int64_t contentSize, const char *contentType) { Mutex::Autolock autoLock(mLock); |