diff options
author | Andreas Huber <andih@google.com> | 2013-03-26 10:19:24 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-03-26 10:19:24 -0700 |
commit | 190cdbab6ba24519d6b5e8bec6c2c74e6650e284 (patch) | |
tree | 515d0a75f7bf43b802fb3247f3ce86efa7526af8 /media/libstagefright/chromium_http | |
parent | 27a14b22e03dbd677e100f273e359a0daf2e79c6 (diff) | |
download | frameworks_av-190cdbab6ba24519d6b5e8bec6c2c74e6650e284.zip frameworks_av-190cdbab6ba24519d6b5e8bec6c2c74e6650e284.tar.gz frameworks_av-190cdbab6ba24519d6b5e8bec6c2c74e6650e284.tar.bz2 |
Identify network servers and clients with a OS version related string
and put the logic to create that string in one location instead of many...
Change-Id: I1f729f2e7376cd3b45eea0e48f7bd10084b41b39
Diffstat (limited to 'media/libstagefright/chromium_http')
-rw-r--r-- | media/libstagefright/chromium_http/support.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/media/libstagefright/chromium_http/support.cpp b/media/libstagefright/chromium_http/support.cpp index 13ae3df..832e86d 100644 --- a/media/libstagefright/chromium_http/support.cpp +++ b/media/libstagefright/chromium_http/support.cpp @@ -36,8 +36,8 @@ #include "include/ChromiumHTTPDataSource.h" #include <cutils/log.h> -#include <cutils/properties.h> #include <media/stagefright/MediaErrors.h> +#include <media/stagefright/Utils.h> #include <string> namespace android { @@ -156,19 +156,7 @@ net::NetLog::LogLevel SfNetLog::GetLogLevel() const { //////////////////////////////////////////////////////////////////////////////// SfRequestContext::SfRequestContext() { - AString ua; - ua.append("stagefright/1.2 (Linux;Android "); - -#if (PROPERTY_VALUE_MAX < 8) -#error "PROPERTY_VALUE_MAX must be at least 8" -#endif - - char value[PROPERTY_VALUE_MAX]; - property_get("ro.build.version.release", value, "Unknown"); - ua.append(value); - ua.append(")"); - - mUserAgent = ua.c_str(); + mUserAgent = MakeUserAgent().c_str(); set_net_log(new SfNetLog()); |