mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
examples: win32-videooverlay: Fix C2440 build error
Follow WNDPROC define to avoid implicit type conversion.
This commit is contained in:
parent
2e686b0dad
commit
8f125fb4d9
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue