[vlc-devel] commit: gapi compilation fixes (again). (Laurent Aimar )

git version control git at videolan.org
Tue Jan 5 23:05:38 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan  5 23:02:54 2010 +0100| [24655a2d7e85c4a7e275f04dc7997684c61aaf26] | committer: Laurent Aimar 

gapi compilation fixes (again).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24655a2d7e85c4a7e275f04dc7997684c61aaf26
---

 modules/video_output/msw/wingdi.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/wingdi.c b/modules/video_output/msw/wingdi.c
index 975f764..65492bf 100644
--- a/modules/video_output/msw/wingdi.c
+++ b/modules/video_output/msw/wingdi.c
@@ -255,7 +255,7 @@ static int Lock(picture_t *picture)
     /* */
     GXDisplayProperties gxdisplayprop = GXGetDisplayProperties();
     uint8_t *p_pic_buffer = GXBeginDraw();
-    if (!sys->p_pic_buffer) {
+    if (!p_pic_buffer) {
         msg_Err(vd, "GXBeginDraw error %d ", GetLastError());
         return VLC_EGENERIC;
     }
@@ -270,6 +270,8 @@ static int Lock(picture_t *picture)
 }
 static void Unlock(picture_t *picture)
 {
+    vout_display_t *vd = picture->p_sys->vd;
+
     GXEndDraw();
 }
 #endif
@@ -411,7 +413,7 @@ static int Init(vout_display_t *vd,
         cfg.picture = &picture;
 #ifdef MODULE_NAME_IS_wingapi
         cfg.lock    = Lock;
-        cfg.unlock  = Unkock;
+        cfg.unlock  = Unlock;
 #endif
         sys->pool = picture_pool_NewExtended(&cfg);
     } else {




More information about the vlc-devel mailing list