Skip to content
Snippets Groups Projects
Commit bc1e6cef authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

android: display: increase priority

This fixes the following, non critical error, when EGL is trying to
connect to a surface already used by MediaCodec.

libEGL E eglCreateWindowSurface: native_window_api_connect (win=0xb400007ba5d022a0) failed (0xffffffea) (already connected to another API?)
       E eglCreateWindowSurfaceTmpl:692 error 3003 (EGL_BAD_ALLOC)
   VLC E [b400007a85ce46b0/5ac0] libvlc gl: cannot create EGL window surface

This is partial revert of c515dc46
parent 0c25f466
No related branches found
No related tags found
1 merge request!3359android: display: increase priority
Pipeline #320671 passed with stage
in 20 minutes and 52 seconds
......@@ -486,6 +486,12 @@ static int Open(vout_display_t *vd,
|| context == NULL)
return VLC_EGENERIC;
if (!vd->obj.force && fmtp->projection_mode != PROJECTION_MODE_RECTANGULAR)
{
/* Let the gles2 vout handle projection */
return VLC_EGENERIC;
}
struct sys *sys;
vd->sys = sys = malloc(sizeof(*sys));
if (sys == NULL)
......@@ -538,7 +544,7 @@ vlc_module_begin()
set_description("Android video output")
add_shortcut("android-display")
add_obsolete_string("android-display-chroma") /* since 4.0.0 */
set_callback_display(Open, 260)
set_callback_display(Open, 280)
add_submodule ()
set_capability("vout window", 0)
set_callback(subpicture_window_Open)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment