Browse Source

vout: opengl: reject VLC_CODEC_CVPX_P010 on iOS

There’s no possible interoperability between VLC_CODEC_CVPX_P010 and the native
Darwin OpenGLES backend given it can’t allocate more than 8bit-per-pixel textures. Hence we can reject this chroma to prevent the display from opening in this
case.
pull/162/head
Maxime Chapelet 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
5193c8dbe3
  1. 4
      modules/video_output/opengl/display.c

4
modules/video_output/opengl/display.c

@ -190,6 +190,10 @@ static void PlacePicture(vout_display_t *vd, vout_display_place_t *place,
static int Open(vout_display_t *vd,
video_format_t *fmt, vlc_video_context *context)
{
#if TARGET_OS_IPHONE
if (fmt->i_chroma == VLC_CODEC_CVPX_P010)
return VLC_EGENERIC;
#endif
vout_display_sys_t *sys = malloc (sizeof (*sys));
if (unlikely(sys == NULL))
return VLC_ENOMEM;

Loading…
Cancel
Save