gst-libs/gst/fft/: Include our own _stdint.h instead of sys/types.h, makes MingW...
authorVincent Torri <vtorri@univ-evry.fr>
Thu, 1 Nov 2007 13:28:59 +0000 (13:28 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 1 Nov 2007 13:28:59 +0000 (13:28 +0000)
Original commit message from CVS:
Patch by: Vincent Torri <vtorri at univ-evry dot fr>
* gst-libs/gst/fft/kiss_fft_s16.h: (KISS_FFT_S16_MALLOC):
* gst-libs/gst/fft/kiss_fft_s32.h: (KISS_FFT_S32_MALLOC):
Include our own _stdint.h instead of sys/types.h, makes MingW happy
(#492306).
* gst-libs/gst/rtsp/gstrtspconnection.c: (gst_rtsp_connection_create):
Use _pipe directly, GLib doesn't have a pipe() macro any longer
(it disappeared in GLib 2.14.0) (#492306).
* gst-libs/gst/sdp/Makefile.am:
* gst-libs/gst/sdp/gstsdpmessage.c:
Fix includes and LIBS for win32/Mingw (#492306).
* tests/examples/dynamic/addstream.c (pause_play_stream):
Use more portable g_usleep() instead of sleep() (#492306).

ChangeLog
gst-libs/gst/fft/kiss_fft_s16.h
gst-libs/gst/fft/kiss_fft_s32.h
gst-libs/gst/rtsp/gstrtspconnection.c
gst-libs/gst/sdp/Makefile.am
gst-libs/gst/sdp/gstsdpmessage.c
tests/examples/dynamic/addstream.c

index bbbcc10..7b74642 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,25 @@
 2007-11-01  Tim-Philipp Müller  <tim at centricular dot net>
 
+       Patch by: Vincent Torri <vtorri at univ-evry dot fr>
+
+       * gst-libs/gst/fft/kiss_fft_s16.h: (KISS_FFT_S16_MALLOC):
+       * gst-libs/gst/fft/kiss_fft_s32.h: (KISS_FFT_S32_MALLOC):
+         Include our own _stdint.h instead of sys/types.h, makes MingW happy
+         (#492306).
+
+       * gst-libs/gst/rtsp/gstrtspconnection.c: (gst_rtsp_connection_create):
+         Use _pipe directly, GLib doesn't have a pipe() macro any longer
+         (it disappeared in GLib 2.14.0) (#492306).
+
+       * gst-libs/gst/sdp/Makefile.am:
+       * gst-libs/gst/sdp/gstsdpmessage.c:
+         Fix includes and LIBS for win32/Mingw (#492306).
+
+       * tests/examples/dynamic/addstream.c (pause_play_stream):
+         Use more portable g_usleep() instead of sleep() (#492306).
+
+2007-11-01  Tim-Philipp Müller  <tim at centricular dot net>
+
        Patch by: Ole André Vadla Ravnås  <ole.andre.ravnas@tandberg.com>
 
        * gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),
index e607dfd..ed735e6 100644 (file)
@@ -26,7 +26,8 @@ extern "C" {
 
 #define KISS_FFT_S16_MALLOC malloc
 
-#include <sys/types.h> 
+#include "_stdint.h"
+
 #define kiss_fft_s16_scalar int16_t
 
 typedef struct {
index 8a42768..103eaf9 100644 (file)
@@ -27,7 +27,8 @@ extern "C" {
 #define KISS_FFT_S32_MALLOC malloc
 
 
-#include <sys/types.h> 
+#include "_stdint.h"
+
 #define kiss_fft_s32_scalar int32_t
 
 typedef struct {
index 14ba397..1da824d 100644 (file)
@@ -163,7 +163,7 @@ gst_rtsp_connection_create (GstRTSPUrl * url, GstRTSPConnection ** conn)
 #ifdef G_OS_WIN32
   /* This should work on UNIX too. PF_UNIX sockets replaced with pipe */
   /* pipe( CONTROL_SOCKETS(newconn) ) */
-  if ((ret = pipe (CONTROL_SOCKETS (newconn))) < 0)
+  if ((ret = _pipe (CONTROL_SOCKETS (newconn), 4096, _O_BINARY)) < 0)
     goto no_socket_pair;
 
   ioctlsocket (READ_SOCKET (newconn), FIONBIO, &flags);
index fedab63..14d4cb6 100644 (file)
@@ -8,5 +8,5 @@ lib_LTLIBRARIES = libgstsdp-@GST_MAJORMINOR@.la
 libgstsdp_@GST_MAJORMINOR@_la_SOURCES = gstsdpmessage.c
 
 libgstsdp_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
-libgstsdp_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS)
+libgstsdp_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(WIN32_LIBS)
 libgstsdp_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
index d538603..af49747 100644 (file)
  * Last reviewed on 2007-07-24 (0.10.14)
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <string.h>
+
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
+
+#include <glib.h>               /* for G_OS_WIN32 */
+
+#ifdef G_OS_WIN32
+#include <ws2tcpip.h>
+#else
 #include <sys/socket.h>
 #include <netdb.h>
+#endif
 
 #include "gstsdpmessage.h"
 
index dc7cad9..3c4a263 100644 (file)
@@ -25,8 +25,6 @@
 #include "config.h"
 #endif
 
-#include <unistd.h>
-
 #include <gst/gst.h>
 
 static GstElement *pipeline;
@@ -93,7 +91,7 @@ pause_play_stream (GstElement * bin, gint seconds)
   }
 
   if (seconds)
-    sleep (seconds);
+    g_usleep (seconds * G_USEC_PER_SEC);
 
   if (punch_in) {
     /* new bin has to be aligned with previous running_time. We do this by taking