summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-02-17 13:35:08 -0800
committerAndreas Huber <andih@google.com>2011-02-17 14:30:05 -0800
commit8cb0c4168bf4b678e4a6edfcf409247016be20d5 (patch)
treed3a274bc9913bacca91d58456697823b31bbaf93 /media/libstagefright/httplive
parentf71eb135c28dd7b305b7030776ef0d44fac732c4 (diff)
downloadframeworks_av-8cb0c4168bf4b678e4a6edfcf409247016be20d5.zip
frameworks_av-8cb0c4168bf4b678e4a6edfcf409247016be20d5.tar.gz
frameworks_av-8cb0c4168bf4b678e4a6edfcf409247016be20d5.tar.bz2
Experimental support for https transfers in stagefright.
Change-Id: If1bd0f265dda136c7c34b53317f64383023b53a3
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index f7a9085..ee845a3 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -189,7 +189,8 @@ status_t LiveSession::fetchFile(const char *url, sp<ABuffer> *out) {
if (!strncasecmp(url, "file://", 7)) {
source = new FileSource(url + 7);
- } else if (strncasecmp(url, "http://", 7)) {
+ } else if (strncasecmp(url, "http://", 7)
+ && strncasecmp(url, "https://", 8)) {
return ERROR_UNSUPPORTED;
} else {
{