vo_corevideo: use stride

The code was entirely correct, as the VO doesn't report VFCAP_ACCEPT_STRIDE
in query_format. Add stride capability in preparation for changing the
video chain: soon all VOs will have to support arbitrary strides.
This commit is contained in:
wm4 2012-11-06 18:09:11 +01:00
parent f4a95058c7
commit 4570a04a17
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
" texture Cache(%d)\n", error);
error = CVPixelBufferCreateWithBytes(NULL, mpi->width, mpi->height,
p->pixelFormat, mpi->planes[0], mpi->width * mpi->bpp / 8,
p->pixelFormat, mpi->planes[0], mpi->stride[0],
NULL, NULL, NULL, &p->pixelBuffer);
if(error != kCVReturnSuccess)
mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create Pixel"