[MPlayer-dev-eng] [PATCH] prefer libcdio over cdparanoia
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Fri Dec 23 19:35:44 CET 2011
Hello,
if both are installed, this will use libcdio.
The reasons are
1) libcdio is more portable, so using it provides for better consistency
between MPlayer on different platforms
2) libcdio has always worked better for me, it is significantly faster,
at least with "paranoia" mode disabled (for my current drive about 0.9x
instead of 0.3x - yes, both are a joke but that seems to be the drive's
fault).
Reimar
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 34457)
+++ configure (working copy)
@@ -5767,24 +5767,8 @@
echores "$_libdvdcss_internal"
-echocheck "cdparanoia"
-if test "$_cdparanoia" = auto ; then
- _cdparanoia=no
- for inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
- statement_check_broken cdda_interface.h cdda_paranoia.h 'paranoia_cachemodel_size(NULL, 0)' $inc_tmp -lcdda_interface -lcdda_paranoia &&
- _cdparanoia=yes && extra_cflags="$extra_cflags $inc_tmp" && break
- done
-fi
-if test "$_cdparanoia" = yes ; then
- _cdda='yes'
- extra_ldflags="$extra_ldflags -lcdda_interface -lcdda_paranoia"
- openbsd && extra_ldflags="$extra_ldflags -lutil"
-fi
-echores "$_cdparanoia"
-
-
echocheck "libcdio"
-if test "$_libcdio" = auto && test "$_cdparanoia" = no ; then
+if test "$_libcdio" = auto ; then
cat > $TMPC << EOF
#include <stdio.h>
#include <cdio/version.h>
@@ -5809,20 +5793,36 @@
extra_ldflags="$extra_ldflags $ld_tmp" && extra_cflags="$extra_cflags $inc_tmp"
fi
fi
-if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then
+if test "$_libcdio" = yes ; then
_cdda='yes'
+ _cdparanoia=no
def_libcdio='#define CONFIG_LIBCDIO 1'
def_havelibcdio='yes'
else
_libcdio=no
- if test "$_cdparanoia" = yes ; then
- res_comment="using cdparanoia"
- fi
def_libcdio='#undef CONFIG_LIBCDIO'
def_havelibcdio='no'
fi
echores "$_libcdio"
+echocheck "cdparanoia"
+if test "$_cdparanoia" = auto ; then
+ _cdparanoia=no
+ for inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
+ statement_check_broken cdda_interface.h cdda_paranoia.h 'paranoia_cachemodel_size(NULL, 0)' $inc_tmp -lcdda_interface -lcdda_paranoia &&
+ _cdparanoia=yes && extra_cflags="$extra_cflags $inc_tmp" && break
+ done
+fi
+if test "$_cdparanoia" = yes ; then
+ _cdda='yes'
+ extra_ldflags="$extra_ldflags -lcdda_interface -lcdda_paranoia"
+ openbsd && extra_ldflags="$extra_ldflags -lutil"
+elif test "$_libcdio" = yes ; then
+ res_comment='using libcdio'
+fi
+echores "$_cdparanoia"
+
+
if test "$_cdda" = yes ; then
test $_cddb = auto && test $networking = yes && _cddb=yes
def_cdparanoia='#define CONFIG_CDDA 1'
More information about the MPlayer-dev-eng
mailing list