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
ebd19499
Commit
ebd19499
authored
Sep 12, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shout: constant plugin declarations
Declare both shout plugins "const", since they will never change, once initialized at compile time.
parent
d9f170b5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
audioOutput_shout.c
src/audioOutputs/audioOutput_shout.c
+2
-2
audioOutput_shout.h
src/audioOutputs/audioOutput_shout.h
+3
-3
audioOutput_shout_mp3.c
src/audioOutputs/audioOutput_shout_mp3.c
+1
-1
audioOutput_shout_ogg.c
src/audioOutputs/audioOutput_shout_ogg.c
+1
-1
No files found.
src/audioOutputs/audioOutput_shout.c
View file @
ebd19499
...
@@ -29,13 +29,13 @@
...
@@ -29,13 +29,13 @@
static
int
shout_init_count
;
static
int
shout_init_count
;
static
struct
shout_encoder_plugin
*
const
shout_encoder_plugins
[]
=
{
static
const
struct
shout_encoder_plugin
*
const
shout_encoder_plugins
[]
=
{
&
shout_mp3_encoder
,
&
shout_mp3_encoder
,
&
shout_ogg_encoder
,
&
shout_ogg_encoder
,
NULL
NULL
};
};
static
struct
shout_encoder_plugin
*
static
const
struct
shout_encoder_plugin
*
shout_encoder_plugin_get
(
const
char
*
name
)
shout_encoder_plugin_get
(
const
char
*
name
)
{
{
unsigned
i
;
unsigned
i
;
...
...
src/audioOutputs/audioOutput_shout.h
View file @
ebd19499
...
@@ -64,7 +64,7 @@ struct shout_data {
...
@@ -64,7 +64,7 @@ struct shout_data {
shout_metadata_t
*
shout_meta
;
shout_metadata_t
*
shout_meta
;
int
shout_error
;
int
shout_error
;
struct
shout_encoder_plugin
*
encoder
;
const
struct
shout_encoder_plugin
*
encoder
;
void
*
encoder_data
;
void
*
encoder_data
;
float
quality
;
float
quality
;
...
@@ -87,8 +87,8 @@ struct shout_data {
...
@@ -87,8 +87,8 @@ struct shout_data {
struct
shout_buffer
buf
;
struct
shout_buffer
buf
;
};
};
extern
struct
shout_encoder_plugin
shout_mp3_encoder
;
extern
const
struct
shout_encoder_plugin
shout_mp3_encoder
;
extern
struct
shout_encoder_plugin
shout_ogg_encoder
;
extern
const
struct
shout_encoder_plugin
shout_ogg_encoder
;
#endif
#endif
...
...
src/audioOutputs/audioOutput_shout_mp3.c
View file @
ebd19499
...
@@ -174,7 +174,7 @@ static int shout_mp3_encoder_encode(struct shout_data *sd,
...
@@ -174,7 +174,7 @@ static int shout_mp3_encoder_encode(struct shout_data *sd,
return
0
;
return
0
;
}
}
struct
shout_encoder_plugin
shout_mp3_encoder
=
{
const
struct
shout_encoder_plugin
shout_mp3_encoder
=
{
"mp3"
,
"mp3"
,
SHOUT_FORMAT_MP3
,
SHOUT_FORMAT_MP3
,
...
...
src/audioOutputs/audioOutput_shout_ogg.c
View file @
ebd19499
...
@@ -289,7 +289,7 @@ static int shout_ogg_encoder_encode(struct shout_data *sd,
...
@@ -289,7 +289,7 @@ static int shout_ogg_encoder_encode(struct shout_data *sd,
return
0
;
return
0
;
}
}
struct
shout_encoder_plugin
shout_ogg_encoder
=
{
const
struct
shout_encoder_plugin
shout_ogg_encoder
=
{
"ogg"
,
"ogg"
,
SHOUT_FORMAT_VORBIS
,
SHOUT_FORMAT_VORBIS
,
...
...
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