Commit 377d831f authored by Thomas Guillem's avatar Thomas Guillem

vout/android: use gles2 if MediaCodec can't handle the rotation

MediaCodec can't handle rotation before Android 21 and can't handle flipped and
transposed orientations.
parent 2c51d8b5
......@@ -770,8 +770,12 @@ static int OpenOpaque(vlc_object_t *p_this)
vout_display_t *vd = (vout_display_t*)p_this;
if (vd->fmt.i_chroma != VLC_CODEC_ANDROID_OPAQUE
|| vd->fmt.projection_mode != PROJECTION_MODE_RECTANGULAR)
|| vd->fmt.projection_mode != PROJECTION_MODE_RECTANGULAR
|| vd->fmt.orientation != ORIENT_NORMAL)
/* Let the gles2 vout handle orientation and projection */
return OpenCommon(vd);
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