1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 06:17:00 +00:00

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.
This commit is contained in:
Aman Gupta 2017-09-21 19:53:52 -07:00 committed by wm4
parent 52789d6ca0
commit 6254b6d637

View File

@ -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, &params,
p->gl_planes[i]);
mapper->tex[i] = ra_create_wrapped_tex(
mapper->ra,
&params,
CVOpenGLESTextureGetName(p->gl_planes[i])
);
if (!mapper->tex[i])
return -1;
}