summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/HTTPBase.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-03-11 08:47:51 -0800
committerAndreas Huber <andih@google.com>2011-03-11 10:07:19 -0800
commit34fba6695fe1b55710baef561785caa0486654fb (patch)
tree32913423c67a2a767e79a3aee84c11c467ece1b0 /media/libstagefright/HTTPBase.cpp
parent884d064fbf7f45f8089abd7d87bdca5d325cc2ab (diff)
downloadframeworks_av-34fba6695fe1b55710baef561785caa0486654fb.zip
frameworks_av-34fba6695fe1b55710baef561785caa0486654fb.tar.gz
frameworks_av-34fba6695fe1b55710baef561785caa0486654fb.tar.bz2
Only use ChromiumHTTPDataSource if webkit was built with chromium support.
Change-Id: I9ce16f4aae35c61c9fb92fefc2a7c72537631cba
Diffstat (limited to 'media/libstagefright/HTTPBase.cpp')
-rw-r--r--media/libstagefright/HTTPBase.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/HTTPBase.cpp b/media/libstagefright/HTTPBase.cpp
index ff610c7..58b17a7 100644
--- a/media/libstagefright/HTTPBase.cpp
+++ b/media/libstagefright/HTTPBase.cpp
@@ -16,7 +16,10 @@
#include "include/HTTPBase.h"
+#if CHROMIUM_AVAILABLE
#include "include/ChromiumHTTPDataSource.h"
+#endif
+
#include "include/NuHTTPDataSource.h"
#include <cutils/properties.h>
@@ -27,11 +30,14 @@ HTTPBase::HTTPBase() {}
// static
sp<HTTPBase> HTTPBase::Create(uint32_t flags) {
+#if CHROMIUM_AVAILABLE
char value[PROPERTY_VALUE_MAX];
if (!property_get("media.stagefright.use-chromium", value, NULL)
|| (strcasecmp("false", value) && strcmp("0", value))) {
return new ChromiumHTTPDataSource(flags);
- } else {
+ } else
+#endif
+ {
return new NuHTTPDataSource(flags);
}
}