summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-06 14:14:56 -0800
committerAndreas Huber <andih@google.com>2011-01-06 14:14:56 -0800
commit4b197e1ffe46eb73ebdb80efc984bfde336b8e92 (patch)
tree94ac02ccd99d70c7baf085dcad5ced7cd00ad3a8 /media/libstagefright/httplive
parentb1787e3b95e96cc002377d41518cc183f64b58c4 (diff)
downloadframeworks_av-4b197e1ffe46eb73ebdb80efc984bfde336b8e92.zip
frameworks_av-4b197e1ffe46eb73ebdb80efc984bfde336b8e92.tar.gz
frameworks_av-4b197e1ffe46eb73ebdb80efc984bfde336b8e92.tar.bz2
Use NuPlayer for HTTP live streaming playback by default.
Reversed the property logic, set media.httplive.disable-nuplayer to true to revert Change-Id: I1057940667aaab56bb75c9ea15c2cdcab736f3c6
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index 6fd0171..a3e7fc7 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -158,8 +158,8 @@ void LiveSession::onConnect(const sp<AMessage> &msg) {
mBandwidthItems.sort(SortByBandwidth);
char value[PROPERTY_VALUE_MAX];
- if (!property_get("media.httplive.enable-nuplayer", value, NULL)
- || (strcasecmp(value, "true") && strcmp(value, "1"))) {
+ if (property_get("media.httplive.disable-nuplayer", value, NULL)
+ && (!strcasecmp(value, "true") || !strcmp(value, "1"))) {
// The "legacy" player cannot deal with audio format changes,
// some streams use different audio encoding parameters for
// their lowest bandwidth stream.