From: Seungha Yang Date: Tue, 9 Jul 2019 16:27:43 +0000 (+0900) Subject: examples: win32-videooverlay: Fix C2440 build error X-Git-Tag: 1.19.3~511^2~1002 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f125fb4d9616a1f09590eb97950dff96ec33dc3;p=platform%2Fupstream%2Fgstreamer.git examples: win32-videooverlay: Fix C2440 build error Follow WNDPROC define to avoid implicit type conversion. --- diff --git a/tests/examples/overlay/win32-videooverlay.c b/tests/examples/overlay/win32-videooverlay.c index 7868a20..fed970a 100644 --- a/tests/examples/overlay/win32-videooverlay.c +++ b/tests/examples/overlay/win32-videooverlay.c @@ -35,7 +35,7 @@ static HWND hwnd = NULL; #define DEFAULT_VIDEO_SINK "glimagesink" -static LRESULT +static LRESULT CALLBACK window_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { @@ -139,7 +139,7 @@ main (gint argc, gchar ** argv) /* prepare window */ wc.cbSize = sizeof (WNDCLASSEX); wc.style = CS_HREDRAW | CS_VREDRAW; - wc.lpfnWndProc = window_proc; + wc.lpfnWndProc = (WNDPROC) window_proc; wc.hInstance = hinstance; wc.hCursor = LoadCursor (NULL, IDC_ARROW); wc.lpszClassName = "GstWIN32VideoOverlay";