From bda215ba50dd406845bf4c3842d6d5f3c4380d6c Mon Sep 17 00:00:00 2001 From: Santhosh Behara Date: Mon, 10 Aug 2015 16:20:15 +0530 Subject: 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 --- media/libstagefright/httplive/LiveSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'media') 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 &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 &msg) { mBandwidthItems.push(itemsWithVideo[i]); } } - +#endif CHECK_GT(mBandwidthItems.size(), 0u); initialBandwidth = mBandwidthItems[0].mBandwidth; -- cgit v1.1