mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
multiudpsink: Compiler warning fixes for Windows
Just simple missing casts Fixes bug #606438.
This commit is contained in:
parent
47dc716790
commit
4ead3d85bf
1 changed files with 2 additions and 2 deletions
|
@ -407,11 +407,11 @@ socket_last_error_message ()
|
|||
wchar_t buf[1024];
|
||||
DWORD result =
|
||||
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
NULL, errorcode, 0, buf, sizeof (buf) / sizeof (wchar_t), NULL);
|
||||
NULL, errorcode, 0, (LPSTR) buf, sizeof (buf) / sizeof (wchar_t), NULL);
|
||||
if (FAILED (result)) {
|
||||
return g_strdup ("failed to get error message from system");
|
||||
} else {
|
||||
return g_convert (buf, -1, "UTF-16", "UTF-8", NULL, NULL, NULL);
|
||||
return g_convert ((gchar *) buf, -1, "UTF-16", "UTF-8", NULL, NULL, NULL);
|
||||
}
|
||||
#else
|
||||
return g_strdup (g_strerror (errno));
|
||||
|
|
Loading…
Reference in a new issue