summaryrefslogtreecommitdiffstats
path: root/sys/directsound
diff options
context:
space:
mode:
authorSergey Scobich <sergey.scobich@gmail.com>2006-11-01 10:19:18 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-11-01 10:19:18 +0000
commit017a8c8527ff37a4068189e4323a68bc30d1fa92 (patch)
tree145d9d04f34fa14c7b47bfd4f49934f0d493f708 /sys/directsound
parent4bef7791d973deef3e6339ea6a8b421326d6b084 (diff)
downloadgst-plugins-bad-017a8c8527ff37a4068189e4323a68bc30d1fa92.tar.gz
gst-plugins-bad-017a8c8527ff37a4068189e4323a68bc30d1fa92.tar.bz2
gst-plugins-bad-017a8c8527ff37a4068189e4323a68bc30d1fa92.zip
sys/: Wait until the window is created before using it; guard unistd.h includes with HAVE_UNISTD_H. (#366523)
Original commit message from CVS: Patch by: Sergey Scobich <sergey dot scobich at gmail com> * sys/directdraw/gstdirectdrawsink.c: (gst_directdrawsink_window_thread), (gst_directdrawsink_create_default_window): * sys/directdraw/gstdirectdrawsink.h: * sys/directsound/gstdirectsoundsink.c: Wait until the window is created before using it; guard unistd.h includes with HAVE_UNISTD_H. (#366523) * win32/vs8/libgstdirectdraw.vcproj: * win32/vs8/libgstdirectsound.vcproj: Update project files.
Diffstat (limited to 'sys/directsound')
-rw-r--r--sys/directsound/gstdirectsoundsink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index 35149f12..8676238a 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -27,7 +27,9 @@
#include <fcntl.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <string.h>
GST_DEBUG_CATEGORY_STATIC (directsoundsink_debug);