mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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];
|
wchar_t buf[1024];
|
||||||
DWORD result =
|
DWORD result =
|
||||||
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
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)) {
|
if (FAILED (result)) {
|
||||||
return g_strdup ("failed to get error message from system");
|
return g_strdup ("failed to get error message from system");
|
||||||
} else {
|
} 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
|
#else
|
||||||
return g_strdup (g_strerror (errno));
|
return g_strdup (g_strerror (errno));
|
||||||
|
|
Loading…
Reference in a new issue