Commit 24655a2d authored by Laurent Aimar's avatar Laurent Aimar

gapi compilation fixes (again).

parent 0f5eea32
...@@ -255,7 +255,7 @@ static int Lock(picture_t *picture) ...@@ -255,7 +255,7 @@ static int Lock(picture_t *picture)
/* */ /* */
GXDisplayProperties gxdisplayprop = GXGetDisplayProperties(); GXDisplayProperties gxdisplayprop = GXGetDisplayProperties();
uint8_t *p_pic_buffer = GXBeginDraw(); uint8_t *p_pic_buffer = GXBeginDraw();
if (!sys->p_pic_buffer) { if (!p_pic_buffer) {
msg_Err(vd, "GXBeginDraw error %d ", GetLastError()); msg_Err(vd, "GXBeginDraw error %d ", GetLastError());
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -270,6 +270,8 @@ static int Lock(picture_t *picture) ...@@ -270,6 +270,8 @@ static int Lock(picture_t *picture)
} }
static void Unlock(picture_t *picture) static void Unlock(picture_t *picture)
{ {
vout_display_t *vd = picture->p_sys->vd;
GXEndDraw(); GXEndDraw();
} }
#endif #endif
...@@ -411,7 +413,7 @@ static int Init(vout_display_t *vd, ...@@ -411,7 +413,7 @@ static int Init(vout_display_t *vd,
cfg.picture = &picture; cfg.picture = &picture;
#ifdef MODULE_NAME_IS_wingapi #ifdef MODULE_NAME_IS_wingapi
cfg.lock = Lock; cfg.lock = Lock;
cfg.unlock = Unkock; cfg.unlock = Unlock;
#endif #endif
sys->pool = picture_pool_NewExtended(&cfg); sys->pool = picture_pool_NewExtended(&cfg);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment