Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4ee8da2e
Commit
4ee8da2e
authored
Oct 17, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile.am: don't compile disabled decoder plugins
Don't compile the sources of disabled decoder plugins at all, and don't attempt to register these.
parent
25b5d90e
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
103 additions
and
159 deletions
+103
-159
configure.ac
configure.ac
+20
-0
Makefile.am
src/Makefile.am
+48
-16
decoder_list.c
src/decoder_list.c
+18
-0
_flac_common.c
src/inputPlugins/_flac_common.c
+0
-7
_flac_common.h
src/inputPlugins/_flac_common.h
+0
-4
_ogg_common.c
src/inputPlugins/_ogg_common.c
+1
-7
_ogg_common.h
src/inputPlugins/_ogg_common.h
+0
-5
aac_plugin.c
src/inputPlugins/aac_plugin.c
+0
-8
audiofile_plugin.c
src/inputPlugins/audiofile_plugin.c
+0
-9
flac_plugin.c
src/inputPlugins/flac_plugin.c
+13
-36
mod_plugin.c
src/inputPlugins/mod_plugin.c
+0
-9
mp3_plugin.c
src/inputPlugins/mp3_plugin.c
+3
-11
mp4_plugin.c
src/inputPlugins/mp4_plugin.c
+0
-9
mpc_plugin.c
src/inputPlugins/mpc_plugin.c
+0
-9
oggflac_plugin.c
src/inputPlugins/oggflac_plugin.c
+0
-9
oggvorbis_plugin.c
src/inputPlugins/oggvorbis_plugin.c
+0
-11
wavpack_plugin.c
src/inputPlugins/wavpack_plugin.c
+0
-9
No files found.
configure.ac
View file @
4ee8da2e
...
@@ -420,6 +420,8 @@ if test x$enable_mp3 = xyes; then
...
@@ -420,6 +420,8 @@ if test x$enable_mp3 = xyes; then
enable_mp3=no)
enable_mp3=no)
fi
fi
AM_CONDITIONAL(HAVE_MAD, test x$enable_mp3 = xyes)
if test x$enable_lame = xyes; then
if test x$enable_lame = xyes; then
AM_PATH_LAME([MPD_LIBS="$MPD_LIBS $LAME_LIBS" MPD_CFLAGS="$MPD_CFLAGS $LAME_CFLAGS"],
AM_PATH_LAME([MPD_LIBS="$MPD_LIBS $LAME_LIBS" MPD_CFLAGS="$MPD_CFLAGS $LAME_CFLAGS"],
[enable_lame=no;AC_MSG_WARN(You need lame -- disabling lame support)])
[enable_lame=no;AC_MSG_WARN(You need lame -- disabling lame support)])
...
@@ -461,12 +463,16 @@ if test x$enable_mpc = xyes; then
...
@@ -461,12 +463,16 @@ if test x$enable_mpc = xyes; then
CPPFLAGS=$oldcppflags
CPPFLAGS=$oldcppflags
fi
fi
AM_CONDITIONAL(HAVE_MPCDEC, test x$enable_mpc = xyes)
if test x$enable_wavpack = xyes; then
if test x$enable_wavpack = xyes; then
PKG_CHECK_MODULES([WAVPACK], [wavpack],
PKG_CHECK_MODULES([WAVPACK], [wavpack],
[enable_wavpack=yes;AC_DEFINE([HAVE_WAVPACK], 1, [Define to enable WavPack support])] MPD_LIBS="$MPD_LIBS $WAVPACK_LIBS" MPD_CFLAGS="$MPD_CFLAGS $WAVPACK_CFLAGS",
[enable_wavpack=yes;AC_DEFINE([HAVE_WAVPACK], 1, [Define to enable WavPack support])] MPD_LIBS="$MPD_LIBS $WAVPACK_LIBS" MPD_CFLAGS="$MPD_CFLAGS $WAVPACK_CFLAGS",
[enable_wavpack=no;AC_MSG_WARN([WavPack not found -- disabling])])
[enable_wavpack=no;AC_MSG_WARN([WavPack not found -- disabling])])
fi
fi
AM_CONDITIONAL(HAVE_WAVPACK, test x$enable_wavpack = xyes)
MP4FF_SUBDIR=""
MP4FF_SUBDIR=""
if test x$enable_aac = xyes; then
if test x$enable_aac = xyes; then
...
@@ -576,6 +582,8 @@ int main() {
...
@@ -576,6 +582,8 @@ int main() {
CPPFLAGS=$oldcppflags
CPPFLAGS=$oldcppflags
fi
fi
AM_CONDITIONAL(HAVE_FAAD, test x$enable_aac = xyes)
if test x$use_tremor = xyes; then
if test x$use_tremor = xyes; then
if test "x$tremor_libraries" != "x" ; then
if test "x$tremor_libraries" != "x" ; then
TREMOR_LIBS="-L$tremor_libraries"
TREMOR_LIBS="-L$tremor_libraries"
...
@@ -603,6 +611,8 @@ elif test x$enable_oggvorbis = xyes; then
...
@@ -603,6 +611,8 @@ elif test x$enable_oggvorbis = xyes; then
enable_oggvorbis=no)
enable_oggvorbis=no)
fi
fi
AM_CONDITIONAL(HAVE_OGGVORBIS, test x$enable_oggvorbis = xyes)
if test x$use_tremor = xyes; then
if test x$use_tremor = xyes; then
AC_DEFINE(HAVE_TREMOR,1,[Define to use tremor (libvorbisidec) for ogg support])
AC_DEFINE(HAVE_TREMOR,1,[Define to use tremor (libvorbisidec) for ogg support])
if test x$enable_oggflac = xyes; then
if test x$enable_oggflac = xyes; then
...
@@ -629,6 +639,8 @@ if test x$enable_flac = xyes; then
...
@@ -629,6 +639,8 @@ if test x$enable_flac = xyes; then
LIBS="$oldlibs"
LIBS="$oldlibs"
fi
fi
AM_CONDITIONAL(HAVE_FLAC, test x$enable_flac = xyes)
if test x$enable_oggflac = xyes; then
if test x$enable_oggflac = xyes; then
oldmpdcflags="$MPD_CFLAGS"
oldmpdcflags="$MPD_CFLAGS"
oldmpdlibs="$MPD_LIBS"
oldmpdlibs="$MPD_LIBS"
...
@@ -639,6 +651,10 @@ if test x$enable_oggflac = xyes; then
...
@@ -639,6 +651,10 @@ if test x$enable_oggflac = xyes; then
AC_DEFINE(HAVE_OGGFLAC,1,[Define for OggFLAC support])
AC_DEFINE(HAVE_OGGFLAC,1,[Define for OggFLAC support])
fi
fi
AM_CONDITIONAL(HAVE_OGGFLAC, test x$enable_oggflac = xyes)
AM_CONDITIONAL(HAVE_FLAC_COMMON, test x$enable_flac = xyes || test x$enable_oggflac = xyes)
AM_CONDITIONAL(HAVE_OGG_COMMON, test x$enable_oggvorbis = xyes || test x$enable_oggflac = xyes)
if test x$enable_audiofile = xyes; then
if test x$enable_audiofile = xyes; then
PKG_CHECK_MODULES(AUDIOFILE, [audiofile >= 0.1.7],
PKG_CHECK_MODULES(AUDIOFILE, [audiofile >= 0.1.7],
...
@@ -646,12 +662,16 @@ if test x$enable_audiofile = xyes; then
...
@@ -646,12 +662,16 @@ if test x$enable_audiofile = xyes; then
enable_audiofile=no)
enable_audiofile=no)
fi
fi
AM_CONDITIONAL(HAVE_AUDIOFILE, test x$enable_audiofile = xyes)
if test x$enable_mod = xyes; then
if test x$enable_mod = xyes; then
PKG_CHECK_MODULES(LIBMIKMOD, [libmikmod],
PKG_CHECK_MODULES(LIBMIKMOD, [libmikmod],
AC_DEFINE(HAVE_MIKMOD, 1, [Define for mikmod support]),
AC_DEFINE(HAVE_MIKMOD, 1, [Define for mikmod support]),
enable_mod=no)
enable_mod=no)
fi
fi
AM_CONDITIONAL(HAVE_MIKMOD, test x$enable_mod = xyes)
case $with_zeroconf in
case $with_zeroconf in
no|avahi|bonjour)
no|avahi|bonjour)
;;
;;
...
...
src/Makefile.am
View file @
4ee8da2e
...
@@ -15,21 +15,6 @@ mpd_audioOutputs = \
...
@@ -15,21 +15,6 @@ mpd_audioOutputs = \
audioOutputs/audioOutput_mvp.c
\
audioOutputs/audioOutput_mvp.c
\
audioOutputs/audioOutput_jack.c
audioOutputs/audioOutput_jack.c
mpd_inputPlugins
=
\
inputPlugins/_flac_common.c
\
inputPlugins/_ogg_common.c
\
inputPlugins/oggflac_plugin.c
\
inputPlugins/oggvorbis_plugin.c
\
inputPlugins/aac_plugin.c
\
inputPlugins/audiofile_plugin.c
\
inputPlugins/flac_plugin.c
\
inputPlugins/mod_plugin.c
\
inputPlugins/mp3_plugin.c
\
inputPlugins/mp4_plugin.c
\
inputPlugins/mpc_plugin.c
\
inputPlugins/wavpack_plugin.c
mpd_headers
=
\
mpd_headers
=
\
notify.h
\
notify.h
\
ack.h
\
ack.h
\
...
@@ -118,7 +103,6 @@ mpd_headers = \
...
@@ -118,7 +103,6 @@ mpd_headers = \
mpd_SOURCES
=
\
mpd_SOURCES
=
\
$(mpd_headers)
\
$(mpd_headers)
\
$(mpd_audioOutputs)
\
$(mpd_audioOutputs)
\
$(mpd_inputPlugins)
\
notify.c
\
notify.c
\
audio.c
\
audio.c
\
audioOutput.c
\
audioOutput.c
\
...
@@ -194,6 +178,54 @@ if HAVE_ID3TAG
...
@@ -194,6 +178,54 @@ if HAVE_ID3TAG
mpd_SOURCES
+=
tag_id3.c
mpd_SOURCES
+=
tag_id3.c
endif
endif
# decoder plugins
if
HAVE_MAD
mpd_SOURCES
+=
inputPlugins/mp3_plugin.c
endif
if
HAVE_MPCDEC
mpd_SOURCES
+=
inputPlugins/mpc_plugin.c
endif
if
HAVE_WAVPACK
mpd_SOURCES
+=
inputPlugins/wavpack_plugin.c
endif
if
HAVE_FAAD
mpd_SOURCES
+=
inputPlugins/aac_plugin.c inputPlugins/mp4_plugin.c
endif
if
HAVE_OGG_COMMON
mpd_SOURCES
+=
inputPlugins/_ogg_common.c
endif
if
HAVE_FLAC_COMMON
mpd_SOURCES
+=
inputPlugins/_flac_common.c
endif
if
HAVE_OGGVORBIS
mpd_SOURCES
+=
inputPlugins/oggvorbis_plugin.c
endif
if
HAVE_FLAC
mpd_SOURCES
+=
inputPlugins/flac_plugin.c
endif
if
HAVE_OGGFLAC
mpd_SOURCES
+=
inputPlugins/oggflac_plugin.c
endif
if
HAVE_AUDIOFILE
mpd_SOURCES
+=
inputPlugins/audiofile_plugin.c
endif
if
HAVE_MIKMOD
mpd_SOURCES
+=
inputPlugins/mod_plugin.c
endif
if
HAVE_ZEROCONF
if
HAVE_ZEROCONF
mpd_SOURCES
+=
zeroconf.c
mpd_SOURCES
+=
zeroconf.c
endif
endif
...
...
src/decoder_list.c
View file @
4ee8da2e
...
@@ -151,16 +151,34 @@ void decoder_plugin_init_all(void)
...
@@ -151,16 +151,34 @@ void decoder_plugin_init_all(void)
inputPlugin_list
=
makeList
(
NULL
,
1
);
inputPlugin_list
=
makeList
(
NULL
,
1
);
/* load plugins here */
/* load plugins here */
#ifdef HAVE_MAD
decoder_plugin_load
(
&
mp3Plugin
);
decoder_plugin_load
(
&
mp3Plugin
);
#endif
#ifdef HAVE_OGGVORBIS
decoder_plugin_load
(
&
oggvorbisPlugin
);
decoder_plugin_load
(
&
oggvorbisPlugin
);
#endif
#ifdef HAVE_FLAC_COMMON
decoder_plugin_load
(
&
oggflacPlugin
);
decoder_plugin_load
(
&
oggflacPlugin
);
#endif
#ifdef HAVE_FLAC
decoder_plugin_load
(
&
flacPlugin
);
decoder_plugin_load
(
&
flacPlugin
);
#endif
#ifdef HAVE_AUDIOFILE
decoder_plugin_load
(
&
audiofilePlugin
);
decoder_plugin_load
(
&
audiofilePlugin
);
#endif
#ifdef HAVE_FAAD
decoder_plugin_load
(
&
mp4Plugin
);
decoder_plugin_load
(
&
mp4Plugin
);
decoder_plugin_load
(
&
aacPlugin
);
decoder_plugin_load
(
&
aacPlugin
);
#endif
#ifdef HAVE_MPCDEC
decoder_plugin_load
(
&
mpcPlugin
);
decoder_plugin_load
(
&
mpcPlugin
);
#endif
#ifdef HAVE_WAVPACK
decoder_plugin_load
(
&
wavpackPlugin
);
decoder_plugin_load
(
&
wavpackPlugin
);
#endif
#ifdef HAVE_MIKMOD
decoder_plugin_load
(
&
modPlugin
);
decoder_plugin_load
(
&
modPlugin
);
#endif
}
}
void
decoder_plugin_deinit_all
(
void
)
void
decoder_plugin_deinit_all
(
void
)
...
...
src/inputPlugins/_flac_common.c
View file @
4ee8da2e
...
@@ -19,12 +19,7 @@
...
@@ -19,12 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#include "../decoder_api.h"
#if defined(HAVE_FLAC) || defined(HAVE_OGGFLAC)
#include "_flac_common.h"
#include "_flac_common.h"
#include "../log.h"
#include "../log.h"
#include <FLAC/format.h>
#include <FLAC/format.h>
...
@@ -326,5 +321,3 @@ flac_common_write(FlacData *data, const FLAC__Frame * frame,
...
@@ -326,5 +321,3 @@ flac_common_write(FlacData *data, const FLAC__Frame * frame,
return
FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE
;
return
FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE
;
}
}
#endif
/* HAVE_FLAC || HAVE_OGGFLAC */
src/inputPlugins/_flac_common.h
View file @
4ee8da2e
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
#include "../decoder_api.h"
#include "../decoder_api.h"
#if defined(HAVE_FLAC) || defined(HAVE_OGGFLAC)
#include <FLAC/export.h>
#include <FLAC/export.h>
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
# include <FLAC/seekable_stream_decoder.h>
# include <FLAC/seekable_stream_decoder.h>
...
@@ -167,6 +165,4 @@ FLAC__StreamDecoderWriteStatus
...
@@ -167,6 +165,4 @@ FLAC__StreamDecoderWriteStatus
flac_common_write
(
FlacData
*
data
,
const
FLAC__Frame
*
frame
,
flac_common_write
(
FlacData
*
data
,
const
FLAC__Frame
*
frame
,
const
FLAC__int32
*
const
buf
[]);
const
FLAC__int32
*
const
buf
[]);
#endif
/* HAVE_FLAC || HAVE_OGGFLAC */
#endif
/* _FLAC_COMMON_H */
#endif
/* _FLAC_COMMON_H */
src/inputPlugins/_ogg_common.c
View file @
4ee8da2e
...
@@ -19,12 +19,8 @@
...
@@ -19,12 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#include "_flac_common.h"
#include "_ogg_common.h"
#include "_ogg_common.h"
#include "_flac_common.h"
#if defined(HAVE_OGGFLAC) || defined(HAVE_OGGVORBIS) || \
(defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7)
#include "../utils.h"
#include "../utils.h"
ogg_stream_type
ogg_stream_type_detect
(
InputStream
*
inStream
)
ogg_stream_type
ogg_stream_type_detect
(
InputStream
*
inStream
)
...
@@ -51,5 +47,3 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream)
...
@@ -51,5 +47,3 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream)
}
}
return
VORBIS
;
return
VORBIS
;
}
}
#endif
/* defined(HAVE_OGGFLAC || defined(HAVE_OGGVORBIS) */
src/inputPlugins/_ogg_common.h
View file @
4ee8da2e
...
@@ -24,13 +24,8 @@
...
@@ -24,13 +24,8 @@
#include "../decoder_api.h"
#include "../decoder_api.h"
#if defined(HAVE_OGGFLAC) || defined(HAVE_OGGVORBIS) || \
(defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7)
typedef
enum
_ogg_stream_type
{
VORBIS
,
FLAC
}
ogg_stream_type
;
typedef
enum
_ogg_stream_type
{
VORBIS
,
FLAC
}
ogg_stream_type
;
ogg_stream_type
ogg_stream_type_detect
(
InputStream
*
inStream
);
ogg_stream_type
ogg_stream_type_detect
(
InputStream
*
inStream
);
#endif
/* defined(HAVE_OGGFLAC || defined(HAVE_OGGVORBIS) */
#endif
/* _OGG_COMMON_H */
#endif
/* _OGG_COMMON_H */
src/inputPlugins/aac_plugin.c
View file @
4ee8da2e
...
@@ -18,8 +18,6 @@
...
@@ -18,8 +18,6 @@
#include "../decoder_api.h"
#include "../decoder_api.h"
#ifdef HAVE_FAAD
#define AAC_MAX_CHANNELS 6
#define AAC_MAX_CHANNELS 6
#include "../utils.h"
#include "../utils.h"
...
@@ -602,9 +600,3 @@ struct decoder_plugin aacPlugin = {
...
@@ -602,9 +600,3 @@ struct decoder_plugin aacPlugin = {
.
suffixes
=
aac_suffixes
,
.
suffixes
=
aac_suffixes
,
.
mime_types
=
aac_mimeTypes
.
mime_types
=
aac_mimeTypes
};
};
#else
struct
decoder_plugin
aacPlugin
;
#endif
/* HAVE_FAAD */
src/inputPlugins/audiofile_plugin.c
View file @
4ee8da2e
...
@@ -19,9 +19,6 @@
...
@@ -19,9 +19,6 @@
*/
*/
#include "../decoder_api.h"
#include "../decoder_api.h"
#ifdef HAVE_AUDIOFILE
#include "../log.h"
#include "../log.h"
#include <sys/stat.h>
#include <sys/stat.h>
...
@@ -148,9 +145,3 @@ struct decoder_plugin audiofilePlugin = {
...
@@ -148,9 +145,3 @@ struct decoder_plugin audiofilePlugin = {
.
stream_types
=
INPUT_PLUGIN_STREAM_FILE
,
.
stream_types
=
INPUT_PLUGIN_STREAM_FILE
,
.
suffixes
=
audiofileSuffixes
,
.
suffixes
=
audiofileSuffixes
,
};
};
#else
struct
decoder_plugin
audiofilePlugin
;
#endif
/* HAVE_AUDIOFILE */
src/inputPlugins/flac_plugin.c
View file @
4ee8da2e
...
@@ -17,9 +17,6 @@
...
@@ -17,9 +17,6 @@
*/
*/
#include "_flac_common.h"
#include "_flac_common.h"
#ifdef HAVE_FLAC
#include "../utils.h"
#include "../utils.h"
#include "../log.h"
#include "../log.h"
...
@@ -386,12 +383,8 @@ static int flac_decode(struct decoder * decoder, InputStream * inStream)
...
@@ -386,12 +383,8 @@ static int flac_decode(struct decoder * decoder, InputStream * inStream)
return
flac_decode_internal
(
decoder
,
inStream
,
0
);
return
flac_decode_internal
(
decoder
,
inStream
,
0
);
}
}
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
#if defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7 && \
# define flac_plugin_init NULL
!defined(HAVE_OGGFLAC)
#else
/* FLAC_API_VERSION_CURRENT >= 7 */
/* some of this stuff is duplicated from oggflac_plugin.c */
extern
struct
decoder_plugin
oggflacPlugin
;
static
struct
tag
*
oggflac_tag_dup
(
char
*
file
)
static
struct
tag
*
oggflac_tag_dup
(
char
*
file
)
{
{
struct
tag
*
ret
=
NULL
;
struct
tag
*
ret
=
NULL
;
...
@@ -429,7 +422,8 @@ static int oggflac_decode(struct decoder *decoder, InputStream * inStream)
...
@@ -429,7 +422,8 @@ static int oggflac_decode(struct decoder *decoder, InputStream * inStream)
static
bool
oggflac_try_decode
(
InputStream
*
inStream
)
static
bool
oggflac_try_decode
(
InputStream
*
inStream
)
{
{
return
ogg_stream_type_detect
(
inStream
)
==
FLAC
;
return
FLAC_API_SUPPORTS_OGG_FLAC
&&
ogg_stream_type_detect
(
inStream
)
==
FLAC
;
}
}
static
const
char
*
oggflac_suffixes
[]
=
{
"ogg"
,
"oga"
,
NULL
};
static
const
char
*
oggflac_suffixes
[]
=
{
"ogg"
,
"oga"
,
NULL
};
...
@@ -438,25 +432,15 @@ static const char *oggflac_mime_types[] = { "audio/x-flac+ogg",
...
@@ -438,25 +432,15 @@ static const char *oggflac_mime_types[] = { "audio/x-flac+ogg",
"application/x-ogg"
,
"application/x-ogg"
,
NULL
};
NULL
};
static
int
flac_plugin_init
(
void
)
struct
decoder_plugin
oggflacPlugin
=
{
{
.
name
=
"oggflac"
,
if
(
!
FLAC_API_SUPPORTS_OGG_FLAC
)
{
.
try_decode
=
oggflac_try_decode
,
DEBUG
(
"libFLAC does not support OggFLAC
\n
"
);
.
stream_decode
=
oggflac_decode
,
return
1
;
.
tag_dup
=
oggflac_tag_dup
,
}
.
stream_types
=
INPUT_PLUGIN_STREAM_URL
|
INPUT_PLUGIN_STREAM_FILE
,
DEBUG
(
"libFLAC supports OggFLAC, initializing OggFLAC support
\n
"
);
.
suffixes
=
oggflac_suffixes
,
assert
(
oggflacPlugin
.
name
==
NULL
);
.
mime_types
=
oggflac_mime_types
oggflacPlugin
.
name
=
"oggflac"
;
};
oggflacPlugin
.
try_decode
=
oggflac_try_decode
;
oggflacPlugin
.
stream_decode
=
oggflac_decode
;
oggflacPlugin
.
tag_dup
=
oggflac_tag_dup
;
oggflacPlugin
.
stream_types
=
INPUT_PLUGIN_STREAM_URL
|
INPUT_PLUGIN_STREAM_FILE
;
oggflacPlugin
.
suffixes
=
oggflac_suffixes
;
oggflacPlugin
.
mime_types
=
oggflac_mime_types
;
decoder_plugin_register
(
&
oggflacPlugin
);
return
1
;
}
#endif
/* FLAC_API_VERSION_CURRENT >= 7 */
#endif
/* FLAC_API_VERSION_CURRENT >= 7 */
...
@@ -467,16 +451,9 @@ static const char *flac_mime_types[] = { "audio/x-flac",
...
@@ -467,16 +451,9 @@ static const char *flac_mime_types[] = { "audio/x-flac",
struct
decoder_plugin
flacPlugin
=
{
struct
decoder_plugin
flacPlugin
=
{
.
name
=
"flac"
,
.
name
=
"flac"
,
.
init
=
flac_plugin_init
,
.
stream_decode
=
flac_decode
,
.
stream_decode
=
flac_decode
,
.
tag_dup
=
flacTagDup
,
.
tag_dup
=
flacTagDup
,
.
stream_types
=
INPUT_PLUGIN_STREAM_URL
|
INPUT_PLUGIN_STREAM_FILE
,
.
stream_types
=
INPUT_PLUGIN_STREAM_URL
|
INPUT_PLUGIN_STREAM_FILE
,
.
suffixes
=
flacSuffixes
,
.
suffixes
=
flacSuffixes
,
.
mime_types
=
flac_mime_types
.
mime_types
=
flac_mime_types
};
};
#else
/* !HAVE_FLAC */
struct
decoder_plugin
flacPlugin
;
#endif
/* HAVE_FLAC */
src/inputPlugins/mod_plugin.c
View file @
4ee8da2e
...
@@ -17,9 +17,6 @@
...
@@ -17,9 +17,6 @@
*/
*/
#include "../decoder_api.h"
#include "../decoder_api.h"
#ifdef HAVE_MIKMOD
#include "../utils.h"
#include "../utils.h"
#include "../log.h"
#include "../log.h"
...
@@ -279,9 +276,3 @@ struct decoder_plugin modPlugin = {
...
@@ -279,9 +276,3 @@ struct decoder_plugin modPlugin = {
.
stream_types
=
INPUT_PLUGIN_STREAM_FILE
,
.
stream_types
=
INPUT_PLUGIN_STREAM_FILE
,
.
suffixes
=
modSuffixes
,
.
suffixes
=
modSuffixes
,
};
};
#else
struct
decoder_plugin
modPlugin
;
#endif
/* HAVE_MIKMOD */
src/inputPlugins/mp3_plugin.c
View file @
4ee8da2e
...
@@ -17,8 +17,9 @@
...
@@ -17,8 +17,9 @@
*/
*/
#include "../decoder_api.h"
#include "../decoder_api.h"
#include "../log.h"
#ifdef HAVE_MAD
#include "../utils.h"
#include "../conf.h"
#include <mad.h>
#include <mad.h>
...
@@ -26,10 +27,6 @@
...
@@ -26,10 +27,6 @@
#include <id3tag.h>
#include <id3tag.h>
#endif
#endif
#include "../log.h"
#include "../utils.h"
#include "../conf.h"
#define FRAMES_CUSHION 2000
#define FRAMES_CUSHION 2000
#define READ_BUFFER_SIZE 40960
#define READ_BUFFER_SIZE 40960
...
@@ -1125,8 +1122,3 @@ struct decoder_plugin mp3Plugin = {
...
@@ -1125,8 +1122,3 @@ struct decoder_plugin mp3Plugin = {
.
suffixes
=
mp3_suffixes
,
.
suffixes
=
mp3_suffixes
,
.
mime_types
=
mp3_mimeTypes
.
mime_types
=
mp3_mimeTypes
};
};
#else
struct
decoder_plugin
mp3Plugin
;
#endif
/* HAVE_MAD */
src/inputPlugins/mp4_plugin.c
View file @
4ee8da2e
...
@@ -17,9 +17,6 @@
...
@@ -17,9 +17,6 @@
*/
*/
#include "../decoder_api.h"
#include "../decoder_api.h"
#ifdef HAVE_FAAD
#include "../utils.h"
#include "../utils.h"
#include "../log.h"
#include "../log.h"
...
@@ -424,9 +421,3 @@ struct decoder_plugin mp4Plugin = {
...
@@ -424,9 +421,3 @@ struct decoder_plugin mp4Plugin = {
.
suffixes
=
mp4_suffixes
,
.
suffixes
=
mp4_suffixes
,
.
mime_types
=
mp4_mimeTypes
,
.
mime_types
=
mp4_mimeTypes
,
};
};
#else
struct
decoder_plugin
mp4Plugin
;
#endif
/* HAVE_FAAD */
src/inputPlugins/mpc_plugin.c
View file @
4ee8da2e
...
@@ -17,9 +17,6 @@
...
@@ -17,9 +17,6 @@
*/
*/
#include "../decoder_api.h"
#include "../decoder_api.h"
#ifdef HAVE_MPCDEC
#include "../utils.h"
#include "../utils.h"
#include "../log.h"
#include "../log.h"
...
@@ -309,9 +306,3 @@ struct decoder_plugin mpcPlugin = {
...
@@ -309,9 +306,3 @@ struct decoder_plugin mpcPlugin = {
.
stream_types
=
INPUT_PLUGIN_STREAM_URL
|
INPUT_PLUGIN_STREAM_FILE
,
.
stream_types
=
INPUT_PLUGIN_STREAM_URL
|
INPUT_PLUGIN_STREAM_FILE
,
.
suffixes
=
mpcSuffixes
,
.
suffixes
=
mpcSuffixes
,
};
};
#else
struct
decoder_plugin
mpcPlugin
;
#endif
/* HAVE_MPCDEC */
src/inputPlugins/oggflac_plugin.c
View file @
4ee8da2e
...
@@ -20,9 +20,6 @@
...
@@ -20,9 +20,6 @@
*/
*/
#include "_flac_common.h"
#include "_flac_common.h"
#ifdef HAVE_OGGFLAC
#include "_ogg_common.h"
#include "_ogg_common.h"
#include "../utils.h"
#include "../utils.h"
...
@@ -356,9 +353,3 @@ struct decoder_plugin oggflacPlugin = {
...
@@ -356,9 +353,3 @@ struct decoder_plugin oggflacPlugin = {
.
suffixes
=
oggflac_Suffixes
,
.
suffixes
=
oggflac_Suffixes
,
.
mime_types
=
oggflac_mime_types
.
mime_types
=
oggflac_mime_types
};
};
#else
/* !HAVE_FLAC */
struct
decoder_plugin
oggflacPlugin
;
#endif
/* HAVE_OGGFLAC */
src/inputPlugins/oggvorbis_plugin.c
View file @
4ee8da2e
...
@@ -18,12 +18,7 @@
...
@@ -18,12 +18,7 @@
/* TODO 'ogg' should probably be replaced with 'oggvorbis' in all instances */
/* TODO 'ogg' should probably be replaced with 'oggvorbis' in all instances */
#include "../decoder_api.h"
#ifdef HAVE_OGGVORBIS
#include "_ogg_common.h"
#include "_ogg_common.h"
#include "../utils.h"
#include "../utils.h"
#include "../log.h"
#include "../log.h"
...
@@ -390,9 +385,3 @@ struct decoder_plugin oggvorbisPlugin = {
...
@@ -390,9 +385,3 @@ struct decoder_plugin oggvorbisPlugin = {
.
suffixes
=
oggvorbis_Suffixes
,
.
suffixes
=
oggvorbis_Suffixes
,
.
mime_types
=
oggvorbis_MimeTypes
.
mime_types
=
oggvorbis_MimeTypes
};
};
#else
/* !HAVE_OGGVORBIS */
struct
decoder_plugin
oggvorbisPlugin
;
#endif
/* HAVE_OGGVORBIS */
src/inputPlugins/wavpack_plugin.c
View file @
4ee8da2e
...
@@ -19,9 +19,6 @@
...
@@ -19,9 +19,6 @@
*/
*/
#include "../decoder_api.h"
#include "../decoder_api.h"
#ifdef HAVE_WAVPACK
#include "../utils.h"
#include "../utils.h"
#include "../log.h"
#include "../log.h"
#include "../path.h"
#include "../path.h"
...
@@ -575,9 +572,3 @@ struct decoder_plugin wavpackPlugin = {
...
@@ -575,9 +572,3 @@ struct decoder_plugin wavpackPlugin = {
.
suffixes
=
wavpackSuffixes
,
.
suffixes
=
wavpackSuffixes
,
.
mime_types
=
wavpackMimeTypes
.
mime_types
=
wavpackMimeTypes
};
};
#else
/* !HAVE_WAVPACK */
struct
decoder_plugin
wavpackPlugin
;
#endif
/* !HAVE_WAVPACK */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment