gst-libs/gst/rtsp/gstrtspdefs.c: Fix win32 build. Oops.

Original commit message from CVS:
* gst-libs/gst/rtsp/gstrtspdefs.c:
Fix win32 build. Oops.
This commit is contained in:
Michael Smith 2008-11-20 22:06:05 +00:00
parent 4f04294e45
commit 77c3f8bb7f
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-11-20 Michael Smith <msmith@songbirdnest.com>
* gst-libs/gst/rtsp/gstrtspdefs.c:
Fix win32 build. Oops.
2008-11-20 Michael Smith <msmith@songbirdnest.com> 2008-11-20 Michael Smith <msmith@songbirdnest.com>
* gst-libs/gst/rtsp/gstrtspdefs.c: * gst-libs/gst/rtsp/gstrtspdefs.c:

View file

@ -248,9 +248,12 @@ gst_rtsp_strresult (GstRTSPResult result)
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
case -GST_RTSP_ESYS: case -GST_RTSP_ESYS:
case -GST_RTSP_ENET: case -GST_RTSP_ENET:
gchar * msg = g_win32_error_message (WSAGetLastError ()); {
gchar *msg = g_win32_error_message (WSAGetLastError ());
res = g_strdup_printf (rtsp_results[idx], msg); res = g_strdup_printf (rtsp_results[idx], msg);
g_free (msg); g_free (msg);
break;
}
#else #else
case -GST_RTSP_ESYS: case -GST_RTSP_ESYS:
res = g_strdup_printf (rtsp_results[idx], g_strerror (errno)); res = g_strdup_printf (rtsp_results[idx], g_strerror (errno));