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

Commit 94bda640 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "Check meta before dereferencing it."

parents 8346bf5c cd249c40
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -613,6 +613,9 @@ bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
                      bool isStreaming, audio_stream_type_t streamType)
{
    const char *mime;
    if (meta == NULL) {
        return false;
    }
    CHECK(meta->findCString(kKeyMIMEType, &mime));

    audio_offload_info_t info = AUDIO_INFO_INITIALIZER;