+2007-11-02 Tim-Philipp Müller <tim at centricular dot net>
+
+ Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
+
+ * configure.ac:
+ * gst/udp/gstdynudpsink.c:
+ * gst/udp/gstdynudpsink.h:
+ * gst/udp/gstmultiudpsink.c:
+ * gst/udp/gstmultiudpsink.h:
+ * gst/udp/gstudpsink.c:
+ * gst/udp/gstudpsink.h:
+ Fix includes for MSVC and GLib-2.14.0 (#492388).
+
+ * gst/udp/gstudpsrc.c: (gst_udpsrc_start):
+ No more pipe define since GLib-2.14.0, need to use _pipe() directly.
+
2007-11-02 Edward Hervey <bilboed@bilboed.com>
* gst/law/mulaw-decode.c: (mulawdec_sink_setcaps),
AC_CHECK_HEADERS([winsock2.h])
AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
+dnl used in gst/udp
+AC_CHECK_HEADERS([sys/time.h])
+
dnl *** checks for types/defines ***
dnl Check for FIONREAD ioctl declaration. This check is needed
#endif
#include "gstudp-marshal.h"
#include "gstdynudpsink.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <errno.h>
+#include <string.h>
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#include <sys/types.h>
#include <gst/netbuffer/gstnetbuffer.h>
GST_DEBUG_CATEGORY_STATIC (dynudpsink_debug);
G_BEGIN_DECLS
-#include <stdio.h>
-#include <stdlib.h>
-#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"
#include "gstudp.h"
#include "gstudp-marshal.h"
#include "gstmultiudpsink.h"
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <errno.h>
+#include <string.h>
+
GST_DEBUG_CATEGORY_STATIC (multiudpsink_debug);
#define GST_CAT_DEFAULT (multiudpsink_debug)
G_BEGIN_DECLS
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-
#include "gstudpnetutils.h"
#include "gstudp.h"
#endif
#include "gstudpsink.h"
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <errno.h>
+#include <string.h>
+
#define UDP_DEFAULT_HOST "localhost"
#define UDP_DEFAULT_PORT 4951
G_BEGIN_DECLS
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-
#include "gstudp.h"
#include "gstudpnetutils.h"
#endif
#include "gstudpsrc.h"
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <stdlib.h>
+#if defined _MSC_VER && (_MSC_VER >= 1400)
+#include <io.h>
+#endif
+
#include <gst/netbuffer/gstnetbuffer.h>
#ifdef G_OS_WIN32
typedef int socklen_t;
GST_DEBUG_OBJECT (src, "creating pipe");
/* This should work on UNIX too. PF_UNIX sockets replaced with pipe */
- /* pipe( CONTROL_SOCKETS(src) ) */
- if ((ret = pipe (CONTROL_SOCKETS (src))) < 0)
+ /* pipe( CONTROL_SOCKETS(src), 4096, _O_BINARY ) */
+ if ((ret = _pipe (CONTROL_SOCKETS (src), 4096, _O_BINARY)) < 0)
goto no_socket_pair;
#else
GST_DEBUG_OBJECT (src, "creating socket pair");