summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorSanthosh Behara <santhoshbehara@codeaurora.org>2015-08-10 16:20:15 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:58 -0600
commitbda215ba50dd406845bf4c3842d6d5f3c4380d6c (patch)
tree11442a19c9f1eabd1f6887852dcf0a7fa1b01fa7 /media/libstagefright/httplive
parentc678b9f0f3973c0f98e8e9bd431415cf5545da91 (diff)
downloadframeworks_av-bda215ba50dd406845bf4c3842d6d5f3c4380d6c.zip
frameworks_av-bda215ba50dd406845bf4c3842d6d5f3c4380d6c.tar.gz
frameworks_av-bda215ba50dd406845bf4c3842d6d5f3c4380d6c.tar.bz2
httplive: Do not remove audio only playlist
Do not remove audio only playlist. This will enable the player to switch to Audio only from Audio Video and vice versa. Change-Id: I56b9245f3d28ef9f8e31651cc59b494b763f3feb
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 1557401..8720c88 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -1064,6 +1064,7 @@ void LiveSession::onMasterPlaylistFetched(const sp<AMessage> &msg) {
itemsWithVideo.push(item);
}
}
+#if 0
// remove the audio-only variants if we have at least one with video
if (!itemsWithVideo.empty()
&& itemsWithVideo.size() < mBandwidthItems.size()) {
@@ -1072,7 +1073,7 @@ void LiveSession::onMasterPlaylistFetched(const sp<AMessage> &msg) {
mBandwidthItems.push(itemsWithVideo[i]);
}
}
-
+#endif
CHECK_GT(mBandwidthItems.size(), 0u);
initialBandwidth = mBandwidthItems[0].mBandwidth;