diff options
author | Elliott Hughes <enh@google.com> | 2015-02-04 20:14:50 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-04 20:14:50 +0000 |
commit | e91c3dd028c6cf551e905c5d2cfb5d1fc0c8bcb7 (patch) | |
tree | 9e7913af62ee68d339a399723f83c4ef05b79d32 /media/libstagefright/httplive | |
parent | 7bc903581f879c86f3881a2f7563bd28c1ac29b7 (diff) | |
parent | 6a025acb630a3ac4a84715d188aeb48f1946bc3f (diff) | |
download | frameworks_av-e91c3dd028c6cf551e905c5d2cfb5d1fc0c8bcb7.zip frameworks_av-e91c3dd028c6cf551e905c5d2cfb5d1fc0c8bcb7.tar.gz frameworks_av-e91c3dd028c6cf551e905c5d2cfb5d1fc0c8bcb7.tar.bz2 |
am 6a025acb: am ec0472ba: Merge "Move AString\'s StringPrintf out of the way."
* commit '6a025acb630a3ac4a84715d188aeb48f1946bc3f':
Move AString's StringPrintf out of the way.
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 d3f25a1..c25f3d4 100644 --- a/media/libstagefright/httplive/LiveSession.cpp +++ b/media/libstagefright/httplive/LiveSession.cpp @@ -846,11 +846,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); |