[vlc-commits] [Git][videolan/vlc][master] android: display: increase priority

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Mar 9 06:27:06 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bc1e6cef by Thomas Guillem at 2023-03-09T06:14:00+00:00
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 c515dc468dfffe8ed56042c2a3cc28fcb8e9d071

- - - - -


1 changed file:

- modules/video_output/android/display.c


Changes:

=====================================
modules/video_output/android/display.c
=====================================
@@ -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)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bc1e6cefba3afb2b14f78be478c61b855f20b81c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bc1e6cefba3afb2b14f78be478c61b855f20b81c
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list