Loading media/libstagefright/omx/OMXNodeInstance.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -167,8 +167,10 @@ struct BufferMeta { return buf; } bool copyToOmx() const { return mCopyToOmx; bool copyingOrSharingToOmx(const OMX_BUFFERHEADERTYPE *header) const { return mCopyToOmx // sharing buffer with client || (mMem != NULL && mMem->pointer() == header->pBuffer); } void setGraphicBuffer(const sp<GraphicBuffer> &graphicBuffer) { Loading Loading @@ -1272,7 +1274,7 @@ status_t OMXNodeInstance::emptyBuffer( // convert incoming ANW meta buffers if component is configured for gralloc metadata mode // ignore rangeOffset in this case if (buffer_meta->copyToOmx() if (buffer_meta->copyingOrSharingToOmx(header) && mMetadataType[kPortIndexInput] == kMetadataBufferTypeGrallocSource && backup->capacity() >= sizeof(VideoNativeMetadata) && codec->capacity() >= sizeof(VideoGrallocMetadata) Loading Loading
media/libstagefright/omx/OMXNodeInstance.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -167,8 +167,10 @@ struct BufferMeta { return buf; } bool copyToOmx() const { return mCopyToOmx; bool copyingOrSharingToOmx(const OMX_BUFFERHEADERTYPE *header) const { return mCopyToOmx // sharing buffer with client || (mMem != NULL && mMem->pointer() == header->pBuffer); } void setGraphicBuffer(const sp<GraphicBuffer> &graphicBuffer) { Loading Loading @@ -1272,7 +1274,7 @@ status_t OMXNodeInstance::emptyBuffer( // convert incoming ANW meta buffers if component is configured for gralloc metadata mode // ignore rangeOffset in this case if (buffer_meta->copyToOmx() if (buffer_meta->copyingOrSharingToOmx(header) && mMetadataType[kPortIndexInput] == kMetadataBufferTypeGrallocSource && backup->capacity() >= sizeof(VideoNativeMetadata) && codec->capacity() >= sizeof(VideoGrallocMetadata) Loading