From 6254b6d63776ec123453f52c373fa7af5abbdbfb Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 21 Sep 2017 19:53:52 -0700 Subject: vo_opengl_cb: hwdec_ios: fix build [179/188] Compiling video/out/vo_lavc.c ../../video/out/opengl/hwdec_ios.m:135:9: warning: unused variable 'gl' [-Wunused-variable] GL *gl = ra_gl_get(mapper->ra); ^ ../../video/out/opengl/hwdec_ios.m:247:48: warning: incompatible pointer to integer conversion passing 'CVOpenGLESTextureRef' (aka 'struct __CVBuffer *') to parameter of type 'GLuint' (aka 'unsigned int') [-Wint-conversion] p->gl_planes[i]); ^~~~~~~~~~~~~~~ ../../video/out/opengl/ra_gl.h:9:45: note: passing argument to parameter 'gl_texture' here GLuint gl_texture); ^ 2 warnings generated. --- video/out/opengl/hwdec_ios.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/out/opengl/hwdec_ios.m b/video/out/opengl/hwdec_ios.m index 71b205b583..8c353bf46f 100644 --- a/video/out/opengl/hwdec_ios.m +++ b/video/out/opengl/hwdec_ios.m @@ -132,7 +132,6 @@ static const struct ra_format *find_la_variant(struct ra *ra, static int mapper_init(struct ra_hwdec_mapper *mapper) { struct priv *p = mapper->priv; - GL *gl = ra_gl_get(mapper->ra); mapper->dst_params = mapper->src_params; mapper->dst_params.imgfmt = mapper->src_params.hw_subfmt; @@ -243,8 +242,11 @@ static int mapper_map(struct ra_hwdec_mapper *mapper) .src_linear = true, }; - mapper->tex[i] = ra_create_wrapped_tex(mapper->ra, ¶ms, - p->gl_planes[i]); + mapper->tex[i] = ra_create_wrapped_tex( + mapper->ra, + ¶ms, + CVOpenGLESTextureGetName(p->gl_planes[i]) + ); if (!mapper->tex[i]) return -1; } -- cgit v1.2.3