summaryrefslogtreecommitdiffstats
path: root/libvo/vo_corevideo.m
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-09-13 09:32:59 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-10-16 07:19:32 +0200
commitb94619724327e555a348e2cdcd4c6d2ccde8f8b1 (patch)
treed66de095c8b3f494e9d86ce3ca80258949aa925c /libvo/vo_corevideo.m
parent511d5478f91f06ad3bc1354db68b114771c89812 (diff)
downloadmpv-b94619724327e555a348e2cdcd4c6d2ccde8f8b1.tar.bz2
mpv-b94619724327e555a348e2cdcd4c6d2ccde8f8b1.tar.xz
cocoa_common: save state in the vo struct
Save the cocoa state in an instance variable for the Objective-C part of the code and use a field in the vo struct for the raw C part of the code.
Diffstat (limited to 'libvo/vo_corevideo.m')
-rw-r--r--libvo/vo_corevideo.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m
index d92e11ca1c..19a9003b9e 100644
--- a/libvo/vo_corevideo.m
+++ b/libvo/vo_corevideo.m
@@ -319,8 +319,8 @@ static uint32_t draw_image(struct vo *vo, mp_image_t *mpi)
CVReturn error;
if (!p->textureCache || !p->pixelBuffer) {
- error = CVOpenGLTextureCacheCreate(NULL, 0, vo_cocoa_cgl_context(),
- vo_cocoa_cgl_pixel_format(), 0, &p->textureCache);
+ error = CVOpenGLTextureCacheCreate(NULL, 0, vo_cocoa_cgl_context(vo),
+ vo_cocoa_cgl_pixel_format(vo), 0, &p->textureCache);
if(error != kCVReturnSuccess)
mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create OpenGL"
" texture Cache(%d)\n", error);