Commit e46de4ef authored by flx42's avatar flx42 Committed by Jean-Baptiste Kempf
Browse files

jni: OpenGL ES 2.0 vout and Full Hardware Acceleration mode are mutually exclusive

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 636e7237
......@@ -255,6 +255,9 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
methodId = (*env)->GetMethodID(env, cls, "getHardwareAcceleration", "()I");
int hardwareAcceleration = (*env)->CallIntMethod(env, thiz, methodId);
/* With the MediaCodec opaque mode we cannot use the OpenGL ES vout. */
if (hardwareAcceleration == HW_ACCELERATION_FULL)
use_opengles2 = false;
/* Don't add any invalid options, otherwise it causes LibVLC to crash */
const char *argv[] = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment