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
c5edb537
Commit
c5edb537
authored
Feb 16, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed decoder plugin "mp3" to "mad"
A decoder plugin should be named after the library which is used.
parent
585f81ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Makefile.am
src/Makefile.am
+1
-1
mad_plugin.c
src/decoder/mad_plugin.c
+2
-2
decoder_list.c
src/decoder_list.c
+2
-2
No files found.
src/Makefile.am
View file @
c5edb537
...
@@ -267,7 +267,7 @@ endif
...
@@ -267,7 +267,7 @@ endif
# decoder plugins
# decoder plugins
if
HAVE_MAD
if
HAVE_MAD
mpd_SOURCES
+=
decoder/m
p3
_plugin.c
mpd_SOURCES
+=
decoder/m
ad
_plugin.c
endif
endif
if
HAVE_MPCDEC
if
HAVE_MPCDEC
...
...
src/decoder/m
p3
_plugin.c
→
src/decoder/m
ad
_plugin.c
View file @
c5edb537
...
@@ -1208,8 +1208,8 @@ static struct tag *mp3_tag_dup(const char *file)
...
@@ -1208,8 +1208,8 @@ static struct tag *mp3_tag_dup(const char *file)
static
const
char
*
const
mp3_suffixes
[]
=
{
"mp3"
,
"mp2"
,
NULL
};
static
const
char
*
const
mp3_suffixes
[]
=
{
"mp3"
,
"mp2"
,
NULL
};
static
const
char
*
const
mp3_mime_types
[]
=
{
"audio/mpeg"
,
NULL
};
static
const
char
*
const
mp3_mime_types
[]
=
{
"audio/mpeg"
,
NULL
};
const
struct
decoder_plugin
m
p3P
lugin
=
{
const
struct
decoder_plugin
m
ad_decoder_p
lugin
=
{
.
name
=
"m
p3
"
,
.
name
=
"m
ad
"
,
.
init
=
mp3_plugin_init
,
.
init
=
mp3_plugin_init
,
.
stream_decode
=
mp3_decode
,
.
stream_decode
=
mp3_decode
,
.
tag_dup
=
mp3_tag_dup
,
.
tag_dup
=
mp3_tag_dup
,
...
...
src/decoder_list.c
View file @
c5edb537
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include <string.h>
#include <string.h>
extern
const
struct
decoder_plugin
m
p3P
lugin
;
extern
const
struct
decoder_plugin
m
ad_decoder_p
lugin
;
extern
const
struct
decoder_plugin
vorbis_decoder_plugin
;
extern
const
struct
decoder_plugin
vorbis_decoder_plugin
;
extern
const
struct
decoder_plugin
flac_decoder_plugin
;
extern
const
struct
decoder_plugin
flac_decoder_plugin
;
extern
const
struct
decoder_plugin
oggflac_decoder_plugin
;
extern
const
struct
decoder_plugin
oggflac_decoder_plugin
;
...
@@ -44,7 +44,7 @@ extern const struct decoder_plugin ffmpeg_plugin;
...
@@ -44,7 +44,7 @@ extern const struct decoder_plugin ffmpeg_plugin;
static
const
struct
decoder_plugin
*
const
decoder_plugins
[]
=
{
static
const
struct
decoder_plugin
*
const
decoder_plugins
[]
=
{
#ifdef HAVE_MAD
#ifdef HAVE_MAD
&
m
p3P
lugin
,
&
m
ad_decoder_p
lugin
,
#endif
#endif
#ifdef HAVE_OGGVORBIS
#ifdef HAVE_OGGVORBIS
&
vorbis_decoder_plugin
,
&
vorbis_decoder_plugin
,
...
...
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