Merge "Use NuPlayer for HTTP live streaming playback by default." into honeycomb
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 97c541a..439e4ce 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -733,8 +733,8 @@
     }
 
     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"))) {
         if (!strncasecmp("http://", url, 7)) {
             size_t len = strlen(url);
             if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) {
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 @@
         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.