Move oss4 plugin from -bad to -good
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 May 2010 15:08:21 +0000 (16:08 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 May 2010 18:02:55 +0000 (19:02 +0100)
Hook up build infrastructure, docs and tests.

Fixes #614305.

configure.ac
gst-plugins-good.spec.in
po/POTFILES.in
sys/Makefile.am
tests/icles/.gitignore
tests/icles/Makefile.am

index 8b5f46522619b2d6d961de4f428ed5c7f3d995bc..f38ac82fd38a71afd9a2d4639dd25128e21a5e7c 100644 (file)
@@ -433,6 +433,15 @@ dnl Some old BSD versions and also newer OpenBSD versions :
  ])
 ])
 
+dnl *** oss4 ***
+translit(dnm, m, l) AM_CONDITIONAL(USE_OSS4, true)
+AG_GST_CHECK_FEATURE(OSS4, [Open Sound System 4], oss4, [
+  AC_MSG_CHECKING([Checking if we can build the OSS4 elements])
+  AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/stat.h sys/types.h],
+      [test -z "$OSS4_MISSING_HEADER" && HAVE_OSS4="yes"],
+      [OSS4_MISSING_HEADER="yes";HAVE_OSS4="no"])
+])
+
 dnl *** Sun Audio ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_SUNAUDIO, true)
 AG_GST_CHECK_FEATURE(SUNAUDIO, [Sun Audio], sunaudio, [
@@ -990,6 +999,7 @@ AM_CONDITIONAL(USE_LIBCACA, false)
 AM_CONDITIONAL(USE_LIBDV, false)
 AM_CONDITIONAL(USE_LIBPNG, false)
 AM_CONDITIONAL(USE_OSS, false)
+AM_CONDITIONAL(USE_OSS4, false)
 AM_CONDITIONAL(USE_OSX_AUDIO, false)
 AM_CONDITIONAL(USE_OSX_VIDEO, false)
 AM_CONDITIONAL(USE_PULSE, false)
@@ -1130,9 +1140,10 @@ ext/wavpack/Makefile
 sys/Makefile
 sys/directsound/Makefile
 sys/oss/Makefile
-sys/sunaudio/Makefile
+sys/oss4/Makefile
 sys/osxaudio/Makefile
 sys/osxvideo/Makefile
+sys/sunaudio/Makefile
 sys/v4l2/Makefile
 sys/waveform/Makefile
 sys/ximage/Makefile
index 2586c7b180426a633435cc6c846307f6bbc18abc..994b38c8c093ab8dd11f8c148d1e16265ceec38c 100644 (file)
@@ -138,6 +138,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/gstreamer-%{majorminor}/libgstdeinterlace.so
 %{_libdir}/gstreamer-%{majorminor}/libgstflv.so
 %{_libdir}/gstreamer-%{majorminor}/libgsty4menc.so
+%{_libdir}/gstreamer-%{majorminor}/libgstoss4audio.so
 
 # sys plugins
 @USE_GST_V4L2_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux2.so
index 98253c480ae87e47d484adfae0c4fc25f0929f35..3661d12e9fc34621336ae91ea6acec601ec0611f 100644 (file)
@@ -15,6 +15,9 @@ sys/oss/gstossmixer.c
 sys/oss/gstossmixertrack.c
 sys/oss/gstosssink.c
 sys/oss/gstosssrc.c
+sys/oss4/oss4-mixer.c
+sys/oss4/oss4-sink.c
+sys/oss4/oss4-source.c
 sys/sunaudio/gstsunaudiomixertrack.c
 sys/v4l2/gstv4l2src.c
 sys/v4l2/v4l2_calls.c
index 535f581b031092381e2a44429b965831f1782df7..ab08d046d1627afc71c4846fb319086ae9dac0f5 100644 (file)
@@ -10,6 +10,13 @@ else
 OSS_DIR=
 endif
 
+if USE_OSS4
+OSS4_DIR=oss4
+else
+OSS4_DIR=
+endif
+
+
 if USE_DIRECTSOUND
 DIRECTSOUND_DIR=directsound
 else
@@ -70,8 +77,8 @@ else
 XIMAGE_DIR=
 endif
 
-SUBDIRS=$(DIRECTSOUND_DIR) $(OSS_DIR) $(OSX_AUDIO_DIR) $(OSX_VIDEO_DIR) $(SUNAUDIO_DIR) $(V4L2_DIR) $(XIMAGE_DIR)
+SUBDIRS=$(DIRECTSOUND_DIR) $(OSS_DIR) $(OSS4_DIR) $(OSX_AUDIO_DIR) $(OSX_VIDEO_DIR) $(SUNAUDIO_DIR) $(V4L2_DIR) $(XIMAGE_DIR)
 
-DIST_SUBDIRS=directsound oss osxaudio osxvideo sunaudio v4l2 waveform ximage
+DIST_SUBDIRS=directsound oss oss4 osxaudio osxvideo sunaudio v4l2 waveform ximage
 
 include $(top_srcdir)/common/parallel-subdirs.mak
index 32dd6a2327c29679e6ceeb098e1d5f0082b3a705..9ba812160edb8170a84f8c26b180975cc3568274 100644 (file)
@@ -1,4 +1,5 @@
 gdkpixbufsink-test
+test-oss4
 ximagesrc-test
 v4l2src-test
 videobox-test
index a0d57a0ee1569aeff72f8b38ff649783f6794dbb..4405ecfb0f2b33688662fa095ab80a5514ba8f11 100644 (file)
@@ -18,6 +18,17 @@ else
 V4L2_TESTS =
 endif
 
+if USE_OSS4
+OSS4_TESTS=test-oss4
+
+test_oss4_SOURCES = test-oss4.c
+test_oss4_CFLAGS  = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
+test_oss4_LDADD   = $(GST_PLUGINS_BASE_LIBS) -lgstinterfaces-0.10 $(GST_LIBS)
+test_oss4_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+else
+OSS4_TESTS=
+endif
+
 if USE_X
 X_TESTS = ximagesrc-test
 
@@ -40,5 +51,5 @@ videocrop2_test_SOURCES = videocrop2-test.c
 videocrop2_test_CFLAGS  = $(GST_CFLAGS)
 videocrop2_test_LDADD   = $(GST_LIBS)
 
-noinst_PROGRAMS = $(GTK_TESTS) $(V4L2_TESTS) $(X_TESTS) videocrop-test videobox-test videocrop2-test
+noinst_PROGRAMS = $(GTK_TESTS) $(OSS4_TESTS) $(V4L2_TESTS) $(X_TESTS) videocrop-test videobox-test videocrop2-test