[vlc-commits] Win32: fix a small warning

Jean-Baptiste Kempf git at videolan.org
Tue May 31 18:31:20 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 31 18:30:52 2011 +0200| [d8ab9fd61dbfb7a5bdcfc20ead03b4d0da8730f5] | committer: Jean-Baptiste Kempf

Win32: fix a small warning

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

 modules/video_output/msw/direct2d.c |    2 +-
 modules/video_output/msw/glwin32.c  |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/msw/direct2d.c b/modules/video_output/msw/direct2d.c
index 13e45b2..115a6d5 100644
--- a/modules/video_output/msw/direct2d.c
+++ b/modules/video_output/msw/direct2d.c
@@ -254,7 +254,7 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
         HRESULT hr = ID2D1HwndRenderTarget_EndDraw(sys->d2_render_target,
                                                    NULL,
                                                    NULL);
-        if (hr ==  D2DERR_RECREATE_TARGET) {
+        if (hr == D2DERR_RECREATE_TARGET) {
             D2D_DestroyRenderTarget(vd);
             D2D_CreateRenderTarget(vd);
         }
diff --git a/modules/video_output/msw/glwin32.c b/modules/video_output/msw/glwin32.c
index f558a01..af6a58f 100644
--- a/modules/video_output/msw/glwin32.c
+++ b/modules/video_output/msw/glwin32.c
@@ -231,6 +231,7 @@ static void Swap(vlc_gl_t *gl)
 
 static void *OurGetProcAddress(vlc_gl_t *gl, const char *name)
 {
+    VLC_UNUSED(gl);
     return wglGetProcAddress(name);
 }
 



More information about the vlc-commits mailing list