diff options
author | Andreas Huber <andih@google.com> | 2010-06-11 09:57:46 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-06-11 09:57:46 -0700 |
commit | 79f77ef3b0a37660ba8c5bcb2dfbfda3860f2135 (patch) | |
tree | e2d17fb7436eb7d35aed556296f3647e66fae3f4 /media/libstagefright/DataSource.cpp | |
parent | ddbdb35d176266b5ab64c30178f5cb76c5b1b4b4 (diff) | |
download | frameworks_av-79f77ef3b0a37660ba8c5bcb2dfbfda3860f2135.zip frameworks_av-79f77ef3b0a37660ba8c5bcb2dfbfda3860f2135.tar.gz frameworks_av-79f77ef3b0a37660ba8c5bcb2dfbfda3860f2135.tar.bz2 |
Restore feature parity with the old HTTPDataSource as far as support for extra headers (cookies?) and socket-timeout are concerned.
Change-Id: I506dc501faec60e974bf4968d8ba661df7a49aa8
Diffstat (limited to 'media/libstagefright/DataSource.cpp')
-rw-r--r-- | media/libstagefright/DataSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/DataSource.cpp b/media/libstagefright/DataSource.cpp index 6e4f9df..90a596c 100644 --- a/media/libstagefright/DataSource.cpp +++ b/media/libstagefright/DataSource.cpp @@ -109,7 +109,7 @@ sp<DataSource> DataSource::CreateFromURI( source = new FileSource(uri + 7); } else if (!strncasecmp("http://", uri, 7)) { sp<NuHTTPDataSource> httpSource = new NuHTTPDataSource; - if (httpSource->connect(uri /* , headers */) != OK) { + if (httpSource->connect(uri, headers) != OK) { return NULL; } source = new NuCachedSource2(httpSource); |