diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-05-11 16:08:21 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-05-11 19:02:55 +0100 |
commit | 1732ce033a71ed3d976f038b0e6f680968862711 (patch) | |
tree | dc24fcc7717ee38e801a3e5b8e17127a7d33b837 | |
parent | 02a226f74604bee8d0ec0d582f9f330af55cd19a (diff) | |
download | gstreamer-plugins-good-1732ce033a71ed3d976f038b0e6f680968862711.tar.gz |
Move oss4 plugin from -bad to -good
Hook up build infrastructure, docs and tests.
Fixes #614305.
-rw-r--r-- | configure.ac | 13 | ||||
-rw-r--r-- | gst-plugins-good.spec.in | 1 | ||||
-rw-r--r-- | po/POTFILES.in | 3 | ||||
-rw-r--r-- | sys/Makefile.am | 11 | ||||
-rw-r--r-- | tests/icles/.gitignore | 1 | ||||
-rw-r--r-- | tests/icles/Makefile.am | 13 |
6 files changed, 38 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 8b5f46522..f38ac82fd 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/gst-plugins-good.spec.in b/gst-plugins-good.spec.in index 2586c7b18..994b38c8c 100644 --- a/gst-plugins-good.spec.in +++ b/gst-plugins-good.spec.in @@ -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 diff --git a/po/POTFILES.in b/po/POTFILES.in index 98253c480..3661d12e9 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -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 diff --git a/sys/Makefile.am b/sys/Makefile.am index 535f581b0..ab08d046d 100644 --- a/sys/Makefile.am +++ b/sys/Makefile.am @@ -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 diff --git a/tests/icles/.gitignore b/tests/icles/.gitignore index 32dd6a232..9ba812160 100644 --- a/tests/icles/.gitignore +++ b/tests/icles/.gitignore @@ -1,4 +1,5 @@ gdkpixbufsink-test +test-oss4 ximagesrc-test v4l2src-test videobox-test diff --git a/tests/icles/Makefile.am b/tests/icles/Makefile.am index a0d57a0ee..4405ecfb0 100644 --- a/tests/icles/Makefile.am +++ b/tests/icles/Makefile.am @@ -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 |