CVS Root: /cvs/gstreamer
Module: gst-plugins-base
Changes by: msmith
Date: Thu Nov 20 2008 21:41:03 UTC
Log message:
* gst-libs/gst/rtsp/gstrtspdefs.c:
Use WSAGetLastError() rather than errno/h_errno on win32.
Modified files:
. : ChangeLog
gst-libs/gst/rtsp: gstrtspdefs.c
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.4200&r2=1.4201
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspdefs.c.diff?r1=1.3&r2=1.4
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v
retrieving revision 1.4200
retrieving revision 1.4201
diff -u -d -r1.4200 -r1.4201
--- ChangeLog 20 Nov 2008 21:20:26 -0000 1.4200
+++ ChangeLog 20 Nov 2008 21:40:47 -0000 1.4201
@@ -1,5 +1,10 @@
2008-11-20 Michael Smith <[email protected]>
+ * gst-libs/gst/rtsp/gstrtspdefs.c:
+ Use WSAGetLastError() rather than errno/h_errno on win32.
+
+2008-11-20 Michael Smith <[email protected]>
* gst-libs/gst/riff/riff-media.c:
Support WMA Lossless properly.
Index: gstrtspdefs.c
RCS file: /cvs/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspdefs.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gstrtspdefs.c 30 Dec 2007 19:21:16 -0000 1.3
+++ gstrtspdefs.c 20 Nov 2008 21:40:49 -0000 1.4
@@ -60,7 +60,9 @@
#include "gstrtspdefs.h"
-#ifndef G_OS_WIN32
+#ifdef G_OS_WIN32
+#include <winsock2.h>
+#else
#include <netdb.h>
#endif
@@ -243,16 +245,18 @@
idx = CLAMP (idx, 0, -GST_RTSP_ELAST);
switch (idx) {
+ case -GST_RTSP_ESYS:
+ case -GST_RTSP_ENET:
+ gchar * msg = g_win32_error_message (WSAGetLastError ());
+ res = g_strdup_printf (rtsp_results[idx], msg);
+ g_free (msg);
case -GST_RTSP_ESYS:
res = g_strdup_printf (rtsp_results[idx], g_strerror (errno));
break;
case -GST_RTSP_ENET:
res = g_strdup_printf (rtsp_results[idx], hstrerror (h_errno));
-#else
- res =
- g_strdup
- ("not supported on win32, implement me in a different way ??");
case -GST_RTSP_ELAST:
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.