Commit 151f90ba authored by Thomas Guillem's avatar Thomas Guillem

vout: android: handle spherical projection as a last resort

parent 5172aa66
......@@ -648,8 +648,13 @@ static int Open(vlc_object_t *p_this)
vout_display_sys_t *sys;
video_format_t sub_fmt;
if (vd->fmt.projection_mode != PROJECTION_MODE_RECTANGULAR)
/* Fallback to normal projection in case of soft decoding/display (the
* openGL vout, with a higher priority, should be used when the projection
* need to be handled). */
if (vd->fmt.i_chroma == VLC_CODEC_ANDROID_OPAQUE
&& vd->fmt.projection_mode != PROJECTION_MODE_RECTANGULAR)
return VLC_EGENERIC;
vd->fmt.projection_mode = PROJECTION_MODE_RECTANGULAR;
vout_window_t *embed =
vout_display_NewWindow(vd, VOUT_WINDOW_TYPE_ANDROID_NATIVE);
......
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