You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I emloyed: private_handle_t * gralloc_handle = reinterpret_cast<private_handle_t*>(const_cast<native_handle*>(graphicbuffer->getNativeBuffer()->handle)); int fd = gralloc_handle->fd;
to get the file descriptor
But it seemed to be wrong and always returned 0x00
The text was updated successfully, but these errors were encountered:
Are all previous calls successful? Just from the code, it's hard to understand which part failed. I would check pointers for graphicbuffer then for graphicbuffer->getNativeBuffer() and then for graphicbuffer->getNativeBuffer()->handle
I emloyed:
private_handle_t * gralloc_handle = reinterpret_cast<private_handle_t*>(const_cast<native_handle*>(graphicbuffer->getNativeBuffer()->handle)); int fd = gralloc_handle->fd;
to get the file descriptor
But it seemed to be wrong and always returned 0x00
The text was updated successfully, but these errors were encountered: