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

Commit aac112a0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "IMediaSource: fix local MediaBufferGroup refcount" into nyc-mr1-dev

parents 7b973eb8 9996d9d3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -412,12 +412,12 @@ status_t BnMediaSource::onTransact(
                    reply->writeInt32(offset);
                    reply->writeInt32(length);
                    buf->meta_data()->writeToParcel(*reply);
                    if (transferBuf == buf) {
                        buf->addRemoteRefcount(1);
                        if (!supportNonblockingRead()) {
                    transferBuf->addRemoteRefcount(1);
                    if (transferBuf != buf) {
                        transferBuf->release(); // release local ref
                    } else if (!supportNonblockingRead()) {
                        maxNumBuffers = 0; // stop readMultiple with one shared buffer.
                    }
                    }
                } else {
                    ALOGV_IF(buf->mMemory != nullptr,
                            "INLINE(%p) %zu shared mem available, but only %zu used",