Some information to reuse in the future if needed the egl-android vout.

// Linking options.
-lGLES_v1_CM -lEGL -landroid


#include <android/native_window_jni.h>

// Native android window to display the video.
ANativeWindow *p_nativeWindow;

void Java_vlc_android_LibVLC_setSurface(JNIEnv *env, jobject thiz, jobject surface)
{
    p_nativeWindow = ANativeWindow_fromSurface(env, surface);
}


char psz_pWin[255];
snprintf(psz_pWin, 255, "%i", p_nativeWindow);

const char *argv[] = { ....,
                      "--vout", "egl_android",
                      "--egl-android-window", psz_pWin};
