stagefright: add a way to update native handle in OMX buffers
Bug: 22775369
Change-Id: I7d7eb0868fef896d1cb0a45bec759a00f0783673
diff --git a/include/media/IOMX.h b/include/media/IOMX.h
index 19c7955..8caf72d 100644
--- a/include/media/IOMX.h
+++ b/include/media/IOMX.h
@@ -118,6 +118,10 @@
node_id node, OMX_U32 port_index,
const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) = 0;
+ virtual status_t updateNativeHandleInMeta(
+ node_id node, OMX_U32 port_index,
+ const sp<NativeHandle> &nativeHandle, buffer_id buffer) = 0;
+
// This will set *type to resulting metadata buffer type on OMX error (not on binder error) as
// well as on success.
virtual status_t createInputSurface(