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

Commit 61b25059 authored by Alexy Joseph's avatar Alexy Joseph Committed by Steve Kondik
Browse files

nuplayer: Fix crash in video only HLS streams

HLS streaming for video only use cases does not
work because of a crash in audio. Fix this
by returning NULL to nuplayer

CRs-Fixed: 793374
Change-Id: I27aea58b63fa77d324ed1f43bcb0e215458c0189
parent 14bb4876
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -116,6 +116,11 @@ sp<AMessage> NuPlayer::HTTPLiveSource::getFormat(bool audio) {

sp<MetaData> NuPlayer::HTTPLiveSource::getFormatMeta(bool audio) {
    sp<AMessage> format = getFormat(audio);

    if (format == NULL) {
        return NULL;
    }

    sp<MetaData> meta = new MetaData;
    convertMessageToMetaData(format, meta);