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

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

Merge "IMediaSource: release mediabuffer after content is copied into shared memory." into nyc-dev

parents 1ba1eeca 1d5a306c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -330,6 +330,9 @@ status_t BnMediaSource::onTransact(
                    reply->writeInt32(offset);
                    reply->writeInt32(usedSize);
                    buf->meta_data()->writeToParcel(*reply);
                    if (buf->mMemory == NULL) {
                        buf->release();
                    }
                } else {
                    // buffer is small: copy it
                    if (buf->mMemory != NULL) {