mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Add support for building against libdca (with the libdts compat header). Fixes bug #511530.
Original commit message from CVS: * configure.ac: * ext/dts/gstdtsdec.c: Add support for building against libdca (with the libdts compat header). Fixes bug #511530. Should probably be ported to libdca as some points as it's the successor of libdts.
This commit is contained in:
parent
1d20eee277
commit
59c9a6a6bd
3 changed files with 23 additions and 3 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2008-01-23 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
* ext/dts/gstdtsdec.c:
|
||||||
|
Add support for building against libdca (with the libdts compat
|
||||||
|
header). Fixes bug #511530.
|
||||||
|
|
||||||
|
Should probably be ported to libdca as some points as it's the
|
||||||
|
successor of libdts.
|
||||||
|
|
||||||
2008-01-23 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
2008-01-23 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||||
|
|
||||||
* sys/dvb/gstdvbsrc.c:
|
* sys/dvb/gstdvbsrc.c:
|
||||||
|
|
|
@ -420,8 +420,13 @@ AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
|
||||||
dnl *** DTS ***
|
dnl *** DTS ***
|
||||||
translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
|
translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
|
||||||
AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
|
AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
|
||||||
|
HAVE_DTS="yes"
|
||||||
AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h,
|
AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h,
|
||||||
DTS_LIBS="-ldts_pic -lm")
|
DTS_LIBS="-ldts_pic -lm", HAVE_DTS="no")
|
||||||
|
if test $HAVE_DTS = "no"; then
|
||||||
|
AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, -lm, dts.h,
|
||||||
|
DTS_LIBS="-ldca -lm")
|
||||||
|
fi
|
||||||
AC_SUBST(DTS_LIBS)
|
AC_SUBST(DTS_LIBS)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* TODO: - Port to libdca API instead of relying on the compat header.
|
||||||
|
* libdca is the successor of libdts:
|
||||||
|
* http://www.videolan.org/developers/libdca.html
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -56,14 +61,14 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS ("audio/x-dts;" "audio/x-private1-dts")
|
GST_STATIC_CAPS ("audio/x-dts;" "audio/x-private1-dts")
|
||||||
);
|
);
|
||||||
|
|
||||||
#if defined(LIBDTS_FIXED)
|
#if defined(LIBDTS_FIXED) || defined(LIBDCA_FIXED)
|
||||||
#define DTS_CAPS "audio/x-raw-int, " \
|
#define DTS_CAPS "audio/x-raw-int, " \
|
||||||
"endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", " \
|
"endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", " \
|
||||||
"signed = (boolean) true, " \
|
"signed = (boolean) true, " \
|
||||||
"width = (int) 16, " \
|
"width = (int) 16, " \
|
||||||
"depth = (int) 16"
|
"depth = (int) 16"
|
||||||
#define SAMPLE_WIDTH 16
|
#define SAMPLE_WIDTH 16
|
||||||
#elif defined(LIBDTS_DOUBLE)
|
#elif defined(LIBDTS_DOUBLE) || defined(LIBDCA_DOUBLE)
|
||||||
#define DTS_CAPS "audio/x-raw-float, " \
|
#define DTS_CAPS "audio/x-raw-float, " \
|
||||||
"endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", " \
|
"endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", " \
|
||||||
"width = (int) 64"
|
"width = (int) 64"
|
||||||
|
|
Loading…
Reference in a new issue