From fe0ad335726908d78bb38fa73eb6dd3491ff0f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 18 Jul 2013 20:26:44 +0200 Subject: [PATCH] [774/906] win32: Fix some compiler errors/warnings --- gst-libs/gst/gl/win32/gstglwindow_win32.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/gl/win32/gstglwindow_win32.c b/gst-libs/gst/gl/win32/gstglwindow_win32.c index 3b0fc2fc9a..724cd64d67 100644 --- a/gst-libs/gst/gl/win32/gstglwindow_win32.c +++ b/gst-libs/gst/gl/win32/gstglwindow_win32.c @@ -269,7 +269,7 @@ gst_gl_window_win32_set_window_handle (GstGLWindow * window, guintptr id) window_win32 = GST_GL_WINDOW_WIN32 (window); if (!window_win32->internal_win_id) { - window_win32->parent_win_id = id; + window_win32->parent_win_id = (HWND) id; return; } @@ -322,7 +322,7 @@ gst_gl_window_win32_set_window_handle (GstGLWindow * window, guintptr id) SetWindowLongPtr (window_win32->internal_win_id, GWL_STYLE, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW); } - window_win32->parent_win_id = id; + window_win32->parent_win_id = (HWND) id; } /* Thread safe */ @@ -332,8 +332,7 @@ gst_gl_window_win32_draw (GstGLWindow * window, guint width, guint height) GstGLWindowWin32 *window_win32 = GST_GL_WINDOW_WIN32 (window); if (!window_win32->visible) { - HWND parent_id =; - window_win32->parent_win_id; + HWND parent_id = window_win32->parent_win_id; /* if no parent the real size has to be set now because this has not been done * when at window creation */