okay, just think about single producer and single consumer cross process.
why I can’t get correctly FD from EGLStreamKHR?
Official documents described as folloows:
On failure the functions returns EGL_NO_FILE_DESCRIPTOR_KHR and
generates an error
- EGL_BAD_DISPLAY is generated if <dpy> is not a valid
initialized EGLDisplay
- EGL_BAD_STREAM_KHR is generated if <stream> is not a valid
EGLStreamKHR handle created for <dpy>.
- EGL_BAD_STATE_KHR is generated if <stream> is not in the
EGL_STREAM_STATE_CREATED_KHR state or if
eglGetStreamFileDescriptorKHR() has previously been called
on this <stream>.
- EGL_BAD_STATE_KHR is generated if <stream> was not created
by eglCreateStreamKHR (e.g. if it was created by
eglCreateStreamFromFileDescriptorKHR).
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_stream_cross_process_fd.txt
the EGLStreamKHR’s state is right(EGL_STREAM_STATE_CREATED_KHR), So the eglGetStreamFileDescriptorKHR() has previously been called on this EGLStreamKHR inside Aegus???
thanks