[Bug 749411] glcontext_egl should call eglTerminate to free resources for non EGL DISPLAY types

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri May 22 00:50:50 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=749411

--- Comment #9 from Matthew Waters <ystreet00 at gmail.com> ---
(In reply to Jian Li from comment #8)
> So would this be solved if create a egl display with
> gst_gl_display_egl_new() rather than create a dummy display for wayland?
> This will make all the egl context share the same display. Why wayland used
> a dummy display in gst_gl_display_new()?

Wayland needs its own GstGLDisplay subclass for other reasons.

See https://bugzilla.gnome.org/show_bug.cgi?id=709747

> And I personal don't believe terminate one eglDisplay will impact other
> eglDisplay connection.

They don't.

> Think about if I run two opengl applications at the
> same time, they all will get a eglDisplay each when start. If eglTerminate
> will impact other display connections, one application quit will cause
> another application has problem.

Different OpenGL applications are in different process spaces entirely.

Think about it like this.

The question is whether (eglGetDisplay (native_display) == eglGetDisplay
(native_display)). OR in words, across two invocations of eglGetDisplay are the
returned EGLDisplay's the same for the same input native display handle.  The
spec is unclear therefore we cannot assume that they are or aren't.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list