summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSébastien Moutte <sebastien@moutte.net>2007-02-11 12:57:47 +0000
committerSébastien Moutte <sebastien@moutte.net>2007-02-11 12:57:47 +0000
commit9c8ea35617a9a4ae8a9c3859e1a8befc940dd9f7 (patch)
tree7a5577b6014e501857c9277520140b54ae121a5e /gst
parente687b50f6259b2621b309e070e250d99552350fa (diff)
gst/avi/gstavimux.c: Comment a #if 0 in caps template definition as VS6 seems to do not support it.
Original commit message from CVS: * gst/avi/gstavimux.c: Comment a #if 0 in caps template definition as VS6 seems to do not support it. * gst/rtsp/gstrtspsrc.c:(gst_rtspsrc_loop_udp): Use gst_guint64_to_gdouble for conversion. * gst/rtsp/rtspconnection.c:(rtsp_connection_send): Move variables declaration before the first instruction. * gst/rtsp/rtspdefs.c:(rtsp_strresult): Don't use hstrerror for error log on G_OS_WIN32 build as it's not supported. And don't include netdb.h for G_OS_WIN32 * gst/rtsp/sdpmessage.c:(sdp_parse_line): This initialization SDPMedia nmedia = {.media = NULL }; is not supported by VS6 then use an other way to initialize SDPMedia structure. * gst/udp/gstdynudpsink.h: * gst/udp/gstdynudpnetutils.h: Do not include <sys/time.h> for G_OS_WIN32 * gst/udp/gstudpsrc.c: Define socklen_t as int for G_OS_WIN32 * win/common/config.h.in: Undef HAVE_NETINET_IN_H * win32/vs6/gst_plugins_good.dsw: * win32/vs6/libgstrtp.dsp: * win32/vs6/libgstrtsp.dsp: * win32/vs6/libgstautogen.dsp: * win32/vs6/libgstaudiofx.dsp: * win32/vs6/libgstudp.dsp: Add and update project files. * win32/common/gstudp-enumtypes.c: * win32/common/gstudp-enumtypes.h: Add a copy of udp enumtypes to win32/common as in core and base.
Diffstat (limited to 'gst')
-rw-r--r--gst/avi/gstavimux.c4
-rw-r--r--gst/rtsp/gstrtspsrc.c2
-rw-r--r--gst/rtsp/rtspconnection.c8
-rw-r--r--gst/rtsp/rtspdefs.c12
-rw-r--r--gst/rtsp/sdpmessage.c4
-rw-r--r--gst/udp/gstdynudpsink.h2
-rw-r--r--gst/udp/gstudpnetutils.h2
-rw-r--r--gst/udp/gstudpsrc.c3
8 files changed, 28 insertions, 9 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index fddb6290..84dc51ae 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -171,10 +171,10 @@ static GstStaticPadTemplate audio_sink_factory =
"mpegversion = (int) 1, "
"layer = (int) [ 1, 3 ], "
"rate = (int) [ 1000, 96000 ], " "channels = (int) [ 1, 2 ]; "
-#if 0
+/*#if 0 VC6 doesn't support #if here ...
"audio/x-vorbis, "
"rate = (int) [ 1000, 96000 ], " "channels = (int) [ 1, 2 ]; "
-#endif
+#endif*/
"audio/x-ac3, "
"rate = (int) [ 1000, 96000 ], " "channels = (int) [ 1, 2 ]")
);
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index fc35f63b..6870c2f2 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -1425,7 +1425,7 @@ gst_rtspsrc_loop_udp (GstRTSPSrc * src)
GST_ELEMENT_WARNING (src, RESOURCE, READ, (NULL),
("Could not receive any UDP packets for %.4f seconds, maybe your "
"firewall is blocking it. Retrying using a TCP connection.",
- (gdouble) src->timeout / 1000000));
+ gst_guint64_to_gdouble (src->timeout / 1000000)));
/* we can try only TCP now */
src->cur_protocols = RTSP_LOWER_TRANS_TCP;
diff --git a/gst/rtsp/rtspconnection.c b/gst/rtsp/rtspconnection.c
index 69454069..1fb26bf5 100644
--- a/gst/rtsp/rtspconnection.c
+++ b/gst/rtsp/rtspconnection.c
@@ -238,12 +238,16 @@ rtsp_connection_send (RTSPConnection * conn, RTSPMessage * message)
gint towrite;
gchar *data;
+#ifdef G_OS_WIN32
+ WSADATA w;
+ int error;
+#endif
+
g_return_val_if_fail (conn != NULL, RTSP_EINVAL);
g_return_val_if_fail (message != NULL, RTSP_EINVAL);
#ifdef G_OS_WIN32
- WSADATA w;
- int error = WSAStartup (0x0202, &w);
+ error = WSAStartup (0x0202, &w);
if (error)
goto startup_error;
diff --git a/gst/rtsp/rtspdefs.c b/gst/rtsp/rtspdefs.c
index 6c96e1f4..413470ed 100644
--- a/gst/rtsp/rtspdefs.c
+++ b/gst/rtsp/rtspdefs.c
@@ -44,10 +44,12 @@
extern int h_errno;
-#include <netdb.h>
-
#include "rtspdefs.h"
+#ifndef G_OS_WIN32
+#include <netdb.h>
+#endif
+
static const gchar *rtsp_results[] = {
"OK",
/* errors */
@@ -217,7 +219,13 @@ rtsp_strresult (RTSPResult result)
res = g_strdup_printf (rtsp_results[idx], g_strerror (errno));
break;
case -RTSP_ENET:
+#ifndef G_OS_WIN32
res = g_strdup_printf (rtsp_results[idx], hstrerror (h_errno));
+#else
+ res =
+ g_strdup
+ ("not supported on win32, implement me in a different way ??");
+#endif
break;
case -RTSP_ELAST:
res = g_strdup_printf (rtsp_results[idx], result);
diff --git a/gst/rtsp/sdpmessage.c b/gst/rtsp/sdpmessage.c
index e7d2d7eb..1277bdc1 100644
--- a/gst/rtsp/sdpmessage.c
+++ b/gst/rtsp/sdpmessage.c
@@ -582,7 +582,9 @@ sdp_parse_line (SDPContext * c, gchar type, gchar * buffer)
case 'm':
{
gchar *slash;
- SDPMedia nmedia = {.media = NULL };
+ SDPMedia nmedia;
+
+ nmedia.media = NULL;
c->state = SDP_MEDIA;
sdp_media_init (&nmedia);
diff --git a/gst/udp/gstdynudpsink.h b/gst/udp/gstdynudpsink.h
index e57a0ef2..0c300c95 100644
--- a/gst/udp/gstdynudpsink.h
+++ b/gst/udp/gstdynudpsink.h
@@ -30,7 +30,9 @@ G_BEGIN_DECLS
#include <unistd.h>
#include <errno.h>
#include <string.h>
+#ifndef G_OS_WIN32
#include <sys/time.h>
+#endif
#include <sys/types.h>
#include "gstudpnetutils.h"
diff --git a/gst/udp/gstudpnetutils.h b/gst/udp/gstudpnetutils.h
index ab4fd9d6..86c90151 100644
--- a/gst/udp/gstudpnetutils.h
+++ b/gst/udp/gstudpnetutils.h
@@ -21,7 +21,6 @@
#ifndef __GST_UDP_NET_UTILS_H__
#define __GST_UDP_NET_UTILS_H__
-#include <sys/time.h>
#include <sys/types.h>
/* Needed for G_OS_XXXX */
@@ -36,6 +35,7 @@
#include <gst/gstinfo.h>
#else
+#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/socket.h>
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index b3e4b42d..f2a59e33 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -111,6 +111,9 @@
#include <stdlib.h>
#include <gst/netbuffer/gstnetbuffer.h>
+#ifdef G_OS_WIN32
+typedef int socklen_t;
+#endif
#ifdef HAVE_FIONREAD_IN_SYS_FILIO
#include <sys/filio.h>