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

Commit 1d5a306c authored by Wei Jia's avatar Wei Jia
Browse files

IMediaSource: release mediabuffer after content is copied into shared memory.

Bug: 27362659
Bug: 26295488
Change-Id: I27a00440117f08acb0fb68347710c45927d4892a
parent fc958a08
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -315,6 +315,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) {