diff options
author | Elliott Hughes <enh@google.com> | 2015-02-04 11:54:28 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-02-04 11:54:28 -0800 |
commit | a1e8944a21e5833b7aadc451776f11797f5f9273 (patch) | |
tree | b7f4c150346d21f4862f231160c7df6602509a12 /media/libstagefright/httplive | |
parent | 16e8d463bc5c8805ae6815c67875b16d177a9d8a (diff) | |
download | frameworks_av-a1e8944a21e5833b7aadc451776f11797f5f9273.zip frameworks_av-a1e8944a21e5833b7aadc451776f11797f5f9273.tar.gz frameworks_av-a1e8944a21e5833b7aadc451776f11797f5f9273.tar.bz2 |
Move AString's StringPrintf out of the way.
We should come back and replace AString with std::string and switch to the
"real" StringPrintf family, but this fixes the ODR violation that was
preventing us from booting.
Bug: 19265750
Change-Id: I798eb9ca5dd634e44625af5e583439ef9f0cdc35
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r-- | media/libstagefright/httplive/LiveSession.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp index a934e72..bff0aa0 100644 --- a/media/libstagefright/httplive/LiveSession.cpp +++ b/media/libstagefright/httplive/LiveSession.cpp @@ -822,11 +822,11 @@ ssize_t LiveSession::fetchFile( headers.add( String8("Range"), String8( - StringPrintf( + AStringPrintf( "bytes=%lld-%s", range_offset, range_length < 0 - ? "" : StringPrintf("%lld", + ? "" : AStringPrintf("%lld", range_offset + range_length - 1).c_str()).c_str())); } status_t err = mHTTPDataSource->connect(url, &headers); |