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

Commit d6a88612 authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

am 0c072553: am a92896f6: Merge "Fix a mediaserver crash caused by...

am 0c072553: am a92896f6: Merge "Fix a mediaserver crash caused by dereferencing a NULL pointer." into jb-dev

* commit '0c072553':
  Fix a mediaserver crash caused by dereferencing a NULL pointer.
parents ecceee9a 0c072553
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3148,11 +3148,6 @@ bool OMXCodec::drainInputBuffer(BufferInfo *info) {
        mNoMoreOutputData = false;
    }

    CODEC_LOGV("Calling emptyBuffer on buffer %p (length %d), "
               "timestamp %lld us (%.2f secs)",
               info->mBuffer, offset,
               timestampUs, timestampUs / 1E6);

    if (info == NULL) {
        CHECK(mFlags & kUseSecureInputBuffers);
        CHECK(signalEOS);
@@ -3163,6 +3158,11 @@ bool OMXCodec::drainInputBuffer(BufferInfo *info) {
        info = findEmptyInputBuffer();
    }

    CODEC_LOGV("Calling emptyBuffer on buffer %p (length %d), "
               "timestamp %lld us (%.2f secs)",
               info->mBuffer, offset,
               timestampUs, timestampUs / 1E6);

    err = mOMX->emptyBuffer(
            mNode, info->mBuffer, 0, offset,
            flags, timestampUs);