Add directsoundsink to build and dist it, so it gets built when compiling with MingW...
authorVincent Torri <vtorri@univ-evry.fr>
Thu, 4 Jan 2007 09:44:57 +0000 (09:44 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 4 Jan 2007 09:44:57 +0000 (09:44 +0000)
Original commit message from CVS:
Patch by: Vincent Torri  <vtorri at univ-evry fr>
* configure.ac:
* sys/Makefile.am:
* sys/directsound/Makefile.am:
* sys/directsound/gstdirectsoundsink.c:
(gst_directsoundsink_reset):
Add directsoundsink to build and dist it, so it gets built when
compiling with MingW on win32 and the required headers and libraries
are available (fixes: #392638). Also simplify DirectDraw check a bit.
* tests/check/elements/.cvsignore:
Fix CVS ignore for neonhttpsrc test binary.

sys/directsound/Makefile.am [new file with mode: 0644]
sys/directsound/gstdirectsoundsink.c

diff --git a/sys/directsound/Makefile.am b/sys/directsound/Makefile.am
new file mode 100644 (file)
index 0000000..b8b2646
--- /dev/null
@@ -0,0 +1,9 @@
+plugin_LTLIBRARIES = libgstdirectsoundsink.la\r
+\r
+libgstdirectsoundsink_la_SOURCES =  gstdirectsoundsink.c gstdirectsoundplugin.c\r
+libgstdirectsoundsink_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \\r
+       $(GST_PLUGINS_BASE_CFLAGS)\r
+libgstdirectsoundsink_la_LIBADD = $(DIRECTSOUND_LIBS) \\r
+       $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \\r
+       -lgstaudio-$(GST_MAJORMINOR) -lgstinterfaces-$(GST_MAJORMINOR)\r
+libgstdirectsoundsink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)\r
index 8676238..a159a9e 100644 (file)
@@ -485,7 +485,7 @@ gst_directsoundsink_reset (GstAudioSink * asink)
 {
   /*not tested for seeking */
   GstDirectSoundSink *dsoundsink;
-  LPBYTE pLockedBuffer = NULL;
+  LPVOID pLockedBuffer = NULL;
   DWORD dwSizeBuffer = 0;
 
   dsoundsink = GST_DIRECTSOUND_SINK (asink);