mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
vo_corevideo: make compile with recent changes
Width and height were removed from mp_image. Use w and h instead.
This commit is contained in:
parent
a3824d508e
commit
645923f634
@ -231,7 +231,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
|
||||
mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create OpenGL"
|
||||
" texture Cache(%d)\n", error);
|
||||
|
||||
error = CVPixelBufferCreateWithBytes(NULL, mpi->width, mpi->height,
|
||||
error = CVPixelBufferCreateWithBytes(NULL, mpi->w, mpi->h,
|
||||
p->pixelFormat, mpi->planes[0], mpi->stride[0],
|
||||
NULL, NULL, NULL, &p->pixelBuffer);
|
||||
if(error != kCVReturnSuccess)
|
||||
|
Loading…
Reference in New Issue
Block a user