summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/HTTPBase.cpp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-06-15 13:56:18 -0700
committerColin Cross <ccross@android.com>2012-06-15 17:08:48 -0700
commitbea455c8e4a230cc5aedc9df33e1ba97c64cec5f (patch)
treedf728643d29e66431b4d768887c55ce5bbf09e93 /media/libstagefright/HTTPBase.cpp
parentfea3699c6921f50f404b6285d588894cee63d85f (diff)
downloadframeworks_av-bea455c8e4a230cc5aedc9df33e1ba97c64cec5f.zip
frameworks_av-bea455c8e4a230cc5aedc9df33e1ba97c64cec5f.tar.gz
frameworks_av-bea455c8e4a230cc5aedc9df33e1ba97c64cec5f.tar.bz2
libstagefright: dynamically load libstagefright_chromium_http
dlopen libstagefright_chromium_http to allow it to be on the platform side of the pdk without getting overwritten during a pdk fusion build. Change-Id: I391e81d98beab165c3313bc8a71bb370ebb8584d
Diffstat (limited to 'media/libstagefright/HTTPBase.cpp')
-rw-r--r--media/libstagefright/HTTPBase.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/media/libstagefright/HTTPBase.cpp b/media/libstagefright/HTTPBase.cpp
index d7eea3f..40bfc55 100644
--- a/media/libstagefright/HTTPBase.cpp
+++ b/media/libstagefright/HTTPBase.cpp
@@ -21,7 +21,7 @@
#include "include/HTTPBase.h"
#if CHROMIUM_AVAILABLE
-#include "include/ChromiumHTTPDataSource.h"
+#include "include/chromium_http_stub.h"
#endif
#include <media/stagefright/foundation/ADebug.h>
@@ -46,7 +46,10 @@ HTTPBase::HTTPBase()
// static
sp<HTTPBase> HTTPBase::Create(uint32_t flags) {
#if CHROMIUM_AVAILABLE
- return new ChromiumHTTPDataSource(flags);
+ HTTPBase *dataSource = createChromiumHTTPDataSource(flags);
+ if (dataSource) {
+ return dataSource;
+ }
#endif
{
TRESPASS();