diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/avi/gstavimux.c | 4 | ||||
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 2 | ||||
-rw-r--r-- | gst/rtsp/rtspconnection.c | 8 | ||||
-rw-r--r-- | gst/rtsp/rtspdefs.c | 12 | ||||
-rw-r--r-- | gst/rtsp/sdpmessage.c | 4 | ||||
-rw-r--r-- | gst/udp/gstdynudpsink.h | 2 | ||||
-rw-r--r-- | gst/udp/gstudpnetutils.h | 2 | ||||
-rw-r--r-- | gst/udp/gstudpsrc.c | 3 |
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> |