summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f563ac5)
raw | patch | inline | side by side (parent: f563ac5)
author | Benjamin Otte <otte@redhat.com> | |
Thu, 11 Mar 2010 19:29:29 +0000 (20:29 +0100) | ||
committer | Benjamin Otte <otte@redhat.com> | |
Thu, 11 Mar 2010 20:02:45 +0000 (21:02 +0100) |
tests/check/elements/fdsrc.c | patch | blob | history | |
tests/check/gst/gstpoll.c | patch | blob | history | |
tests/check/libs/gstnettimeprovider.c | patch | blob | history |
index 72363562547bccb28bec53501c52d280b9f8451c..6c92f6db86b8e8d096a80e2a6ab168690e842468 100644 (file)
gint pipe_fd[2];
gchar data[4096];
+#ifndef G_OS_WIN32
fail_if (pipe (pipe_fd) < 0);
+#else
+ fail_if (_pipe (pipe_fd, 2048, _O_BINARY) < 0);
+#endif
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "num-buffers", 3, NULL);
gchar data[4096];
gboolean seekable;
+#ifndef G_OS_WIN32
fail_if (pipe (pipe_fd) < 0);
+#else
+ fail_if (_pipe (pipe_fd, 2048, _O_BINARY) < 0);
+#endif
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "num-buffers", 3, NULL);
index ebfa6d7a4a649ac086444744d4cf2a1a4bf45d9a..612cda1123e023971cc1c4798783d2efe1bba827 100644 (file)
#ifdef G_OS_WIN32
#include <winsock2.h>
+#include <fcntl.h>
#define EINPROGRESS WSAEINPROGRESS
#else
#include <sys/socket.h>
index 94fd170f0498f421fbebcfdb7708236d3e403ab8..1e6327005fb1bb1a2ef59b925adf76ee08a9e2ce 100644 (file)
memset (&servaddr, 0, sizeof (servaddr));
servaddr.sin_family = AF_INET;
servaddr.sin_port = htons (port);
+#ifndef G_OS_WIN32
inet_aton ("127.0.0.1", &servaddr.sin_addr);
+#else
+ servaddr.sin_addr.s_addr = inet_addr ("127.0.0.1");
+#endif
packet = gst_net_time_packet_new (NULL);
fail_unless (packet != NULL, "failed to create packet");