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

Commit 8cb0c038 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Linux Build Service Account
Browse files

NuPlayer : Fix offload playback crash issue

-add the Null check for msg in convert message to
metadata function.
Change-Id: Ie229d74695889be1ad496c4cc20eba36e0633f97
parent a10b692c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -468,6 +468,9 @@ static void reassembleESDS(const sp<ABuffer> &csd0, char *esds) {

void convertMessageToMetaData(const sp<AMessage> &msg, sp<MetaData> &meta) {
    AString mime;
    if(msg == NULL)
        return;

    if (msg->findString("mime", &mime)) {
        meta->setCString(kKeyMIMEType, mime.c_str());
    } else {