[Bug 746251] android/gl: video does not show up / GL errors

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Apr 16 01:56:49 PDT 2015


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

--- Comment #5 from Matthieu Bouron <matthieu.bouron at collabora.com> ---
The issues happens when the window handle is changed by the application (here
the android tutorial-5 when it detects a resolution change as it tries to adapt
the surface to the new size).
It does not happen with a simple pipeline with no window handle change, sorry
for the dramatic title.

The first critical error happens when gst_gl_context_activate (context, TRUE)
is called from gst_gl_window_set_window_handle as glimagesink has detected a
window handle change.

It fails to create the surface texture with the following error:
D/GStreamer+glcontext(23262): 0:00:03.712789635 0xa27664c0
gstglcontext.c:629:gst_gl_context_activate:<glcontextegl1> activate:1
D/GStreamer+glcontext(23262): 0:00:03.712942604 0xa27664c0
gstglcontext_egl.c:524:gst_gl_context_egl_activate:<glcontextegl1> Handle
changed (have:0x0, now:0x9d56b208), switching surface
E/BufferQueueProducer(  175): [SurfaceView] connect(P): already connected
(cur=1 req=1)
E/libEGL  (23262): eglCreateWindowSurface: native_window_api_connect
(win=0x9d56b208) failed (0xffffffea) (already connected to another API?)
E/libEGL  (23262): eglCreateWindowSurface:416 error 3003 (EGL_BAD_ALLOC)
E/GStreamer+glcontext(23262): 0:00:03.713529999 0xa27664c0
gstglcontext_egl.c:536:gst_gl_context_egl_activate:<glcontextegl1> Failed to
create window surface: EGL_BAD_ALLOC

It is likely that some ressource are leaked / not properly de-initialized
somewhere.

I have attached a patch that adds error logging in gst_gl_context_egl_activate
and make the function fails if the surface is not created (even if the return
code is not checked by its caller).

I will continue my investigation.

-- 
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