Restore feature parity with the old HTTPDataSource as far as support for extra headers (cookies?) and socket-timeout are concerned.
Change-Id: I506dc501faec60e974bf4968d8ba661df7a49aa8
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 @@
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);