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
commita0eefe10e2996a204f0118dbdf05109879a3d2f6 (patch)
treebcdb3bef79ed8f022b3024725be98891e15d0663 /sys/directsound
parenteead7e23b70c5ebb1af4d52c2cd8bea1bc9db2aa (diff)
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);