Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26700a89 authored by Santhosh Behara's avatar Santhosh Behara Committed by Linux Build Service Account
Browse files

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
parent 01a15c24
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;