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
cd0d0031
Commit
cd0d0031
authored
Jan 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter/chain, encoder: GLib include cleanup
parent
cfeeb7af
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
30 deletions
+33
-30
lame_encoder.c
src/encoder/lame_encoder.c
+5
-2
null_encoder.c
src/encoder/null_encoder.c
+8
-11
twolame_encoder.c
src/encoder/twolame_encoder.c
+6
-3
wave_encoder.c
src/encoder/wave_encoder.c
+8
-12
chain_filter_plugin.c
src/filter/chain_filter_plugin.c
+2
-0
dump_rva2.c
test/dump_rva2.c
+4
-2
No files found.
src/encoder/lame_encoder.c
View file @
cd0d0031
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
#include "audio_format.h"
#include "audio_format.h"
#include <lame/lame.h>
#include <lame/lame.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
@@ -225,7 +228,7 @@ lame_encoder_close(struct encoder *_encoder)
...
@@ -225,7 +228,7 @@ lame_encoder_close(struct encoder *_encoder)
static
bool
static
bool
lame_encoder_write
(
struct
encoder
*
_encoder
,
lame_encoder_write
(
struct
encoder
*
_encoder
,
const
void
*
data
,
size_t
length
,
const
void
*
data
,
size_t
length
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
lame_encoder
*
encoder
=
(
struct
lame_encoder
*
)
_encoder
;
struct
lame_encoder
*
encoder
=
(
struct
lame_encoder
*
)
_encoder
;
unsigned
num_frames
;
unsigned
num_frames
;
...
@@ -283,7 +286,7 @@ lame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
...
@@ -283,7 +286,7 @@ lame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
}
}
static
const
char
*
static
const
char
*
lame_encoder_get_mime_type
(
G_GNUC_UNUSED
struct
encoder
*
_encoder
)
lame_encoder_get_mime_type
(
gcc_unused
struct
encoder
*
_encoder
)
{
{
return
"audio/mpeg"
;
return
"audio/mpeg"
;
}
}
...
...
src/encoder/null_encoder.c
View file @
cd0d0031
...
@@ -22,6 +22,9 @@
...
@@ -22,6 +22,9 @@
#include "encoder_plugin.h"
#include "encoder_plugin.h"
#include "util/fifo_buffer.h"
#include "util/fifo_buffer.h"
#include "util/growing_fifo.h"
#include "util/growing_fifo.h"
#include "gcc.h"
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
@@ -34,15 +37,9 @@ struct null_encoder {
...
@@ -34,15 +37,9 @@ struct null_encoder {
extern
const
struct
encoder_plugin
null_encoder_plugin
;
extern
const
struct
encoder_plugin
null_encoder_plugin
;
static
inline
GQuark
null_encoder_quark
(
void
)
{
return
g_quark_from_static_string
(
"null_encoder"
);
}
static
struct
encoder
*
static
struct
encoder
*
null_encoder_init
(
G_GNUC_UNUSED
const
struct
config_param
*
param
,
null_encoder_init
(
gcc_unused
const
struct
config_param
*
param
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
null_encoder
*
encoder
;
struct
null_encoder
*
encoder
;
...
@@ -71,8 +68,8 @@ null_encoder_close(struct encoder *_encoder)
...
@@ -71,8 +68,8 @@ null_encoder_close(struct encoder *_encoder)
static
bool
static
bool
null_encoder_open
(
struct
encoder
*
_encoder
,
null_encoder_open
(
struct
encoder
*
_encoder
,
G_GNUC_UNUSED
struct
audio_format
*
audio_format
,
gcc_unused
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
null_encoder
*
encoder
=
(
struct
null_encoder
*
)
_encoder
;
struct
null_encoder
*
encoder
=
(
struct
null_encoder
*
)
_encoder
;
...
@@ -83,7 +80,7 @@ null_encoder_open(struct encoder *_encoder,
...
@@ -83,7 +80,7 @@ null_encoder_open(struct encoder *_encoder,
static
bool
static
bool
null_encoder_write
(
struct
encoder
*
_encoder
,
null_encoder_write
(
struct
encoder
*
_encoder
,
const
void
*
data
,
size_t
length
,
const
void
*
data
,
size_t
length
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
null_encoder
*
encoder
=
(
struct
null_encoder
*
)
_encoder
;
struct
null_encoder
*
encoder
=
(
struct
null_encoder
*
)
_encoder
;
...
...
src/encoder/twolame_encoder.c
View file @
cd0d0031
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
#include "audio_format.h"
#include "audio_format.h"
#include <twolame.h>
#include <twolame.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
@@ -224,7 +227,7 @@ twolame_encoder_close(struct encoder *_encoder)
...
@@ -224,7 +227,7 @@ twolame_encoder_close(struct encoder *_encoder)
}
}
static
bool
static
bool
twolame_encoder_flush
(
struct
encoder
*
_encoder
,
G_GNUC_UNUSED
GError
**
error
)
twolame_encoder_flush
(
struct
encoder
*
_encoder
,
gcc_unused
GError
**
error
)
{
{
struct
twolame_encoder
*
encoder
=
(
struct
twolame_encoder
*
)
_encoder
;
struct
twolame_encoder
*
encoder
=
(
struct
twolame_encoder
*
)
_encoder
;
...
@@ -235,7 +238,7 @@ twolame_encoder_flush(struct encoder *_encoder, G_GNUC_UNUSED GError **error)
...
@@ -235,7 +238,7 @@ twolame_encoder_flush(struct encoder *_encoder, G_GNUC_UNUSED GError **error)
static
bool
static
bool
twolame_encoder_write
(
struct
encoder
*
_encoder
,
twolame_encoder_write
(
struct
encoder
*
_encoder
,
const
void
*
data
,
size_t
length
,
const
void
*
data
,
size_t
length
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
twolame_encoder
*
encoder
=
(
struct
twolame_encoder
*
)
_encoder
;
struct
twolame_encoder
*
encoder
=
(
struct
twolame_encoder
*
)
_encoder
;
unsigned
num_frames
;
unsigned
num_frames
;
...
@@ -289,7 +292,7 @@ twolame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
...
@@ -289,7 +292,7 @@ twolame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
}
}
static
const
char
*
static
const
char
*
twolame_encoder_get_mime_type
(
G_GNUC_UNUSED
struct
encoder
*
_encoder
)
twolame_encoder_get_mime_type
(
gcc_unused
struct
encoder
*
_encoder
)
{
{
return
"audio/mpeg"
;
return
"audio/mpeg"
;
}
}
...
...
src/encoder/wave_encoder.c
View file @
cd0d0031
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
#include "util/fifo_buffer.h"
#include "util/fifo_buffer.h"
#include "util/growing_fifo.h"
#include "util/growing_fifo.h"
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
@@ -51,12 +53,6 @@ struct wave_header {
...
@@ -51,12 +53,6 @@ struct wave_header {
extern
const
struct
encoder_plugin
wave_encoder_plugin
;
extern
const
struct
encoder_plugin
wave_encoder_plugin
;
static
inline
GQuark
wave_encoder_quark
(
void
)
{
return
g_quark_from_static_string
(
"wave_encoder"
);
}
static
void
static
void
fill_wave_header
(
struct
wave_header
*
header
,
int
channels
,
int
bits
,
fill_wave_header
(
struct
wave_header
*
header
,
int
channels
,
int
bits
,
int
freq
,
int
block_size
)
int
freq
,
int
block_size
)
...
@@ -85,8 +81,8 @@ fill_wave_header(struct wave_header *header, int channels, int bits,
...
@@ -85,8 +81,8 @@ fill_wave_header(struct wave_header *header, int channels, int bits,
}
}
static
struct
encoder
*
static
struct
encoder
*
wave_encoder_init
(
G_GNUC_UNUSED
const
struct
config_param
*
param
,
wave_encoder_init
(
gcc_unused
const
struct
config_param
*
param
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
wave_encoder
*
encoder
;
struct
wave_encoder
*
encoder
;
...
@@ -106,8 +102,8 @@ wave_encoder_finish(struct encoder *_encoder)
...
@@ -106,8 +102,8 @@ wave_encoder_finish(struct encoder *_encoder)
static
bool
static
bool
wave_encoder_open
(
struct
encoder
*
_encoder
,
wave_encoder_open
(
struct
encoder
*
_encoder
,
G_GNUC_UNUSED
struct
audio_format
*
audio_format
,
gcc_unused
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
wave_encoder
*
encoder
=
(
struct
wave_encoder
*
)
_encoder
;
struct
wave_encoder
*
encoder
=
(
struct
wave_encoder
*
)
_encoder
;
...
@@ -202,7 +198,7 @@ pcm24_to_wave(uint8_t *dst8, const uint32_t *src32, size_t length)
...
@@ -202,7 +198,7 @@ pcm24_to_wave(uint8_t *dst8, const uint32_t *src32, size_t length)
static
bool
static
bool
wave_encoder_write
(
struct
encoder
*
_encoder
,
wave_encoder_write
(
struct
encoder
*
_encoder
,
const
void
*
src
,
size_t
length
,
const
void
*
src
,
size_t
length
,
G_GNUC_UNUSED
GError
**
error
)
gcc_unused
GError
**
error
)
{
{
struct
wave_encoder
*
encoder
=
(
struct
wave_encoder
*
)
_encoder
;
struct
wave_encoder
*
encoder
=
(
struct
wave_encoder
*
)
_encoder
;
...
@@ -261,7 +257,7 @@ wave_encoder_read(struct encoder *_encoder, void *dest, size_t length)
...
@@ -261,7 +257,7 @@ wave_encoder_read(struct encoder *_encoder, void *dest, size_t length)
}
}
static
const
char
*
static
const
char
*
wave_encoder_get_mime_type
(
G_GNUC_UNUSED
struct
encoder
*
_encoder
)
wave_encoder_get_mime_type
(
gcc_unused
struct
encoder
*
_encoder
)
{
{
return
"audio/wav"
;
return
"audio/wav"
;
}
}
...
...
src/filter/chain_filter_plugin.c
View file @
cd0d0031
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#include "filter_registry.h"
#include "filter_registry.h"
#include "audio_format.h"
#include "audio_format.h"
#include <glib.h>
#include <assert.h>
#include <assert.h>
struct
filter_chain
{
struct
filter_chain
{
...
...
test/dump_rva2.c
View file @
cd0d0031
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <id3tag.h>
#include <id3tag.h>
#include <glib.h>
#ifdef HAVE_LOCALE_H
#ifdef HAVE_LOCALE_H
#include <locale.h>
#include <locale.h>
#endif
#endif
...
@@ -46,8 +48,8 @@ tag_new(void)
...
@@ -46,8 +48,8 @@ tag_new(void)
}
}
void
void
tag_add_item_n
(
G_GNUC_UNUSED
struct
tag
*
tag
,
G_GNUC_UNUSED
enum
tag_type
type
,
tag_add_item_n
(
gcc_unused
struct
tag
*
tag
,
gcc_unused
enum
tag_type
type
,
G_GNUC_UNUSED
const
char
*
value
,
G_GNUC_UNUSED
size_t
len
)
gcc_unused
const
char
*
value
,
gcc_unused
size_t
len
)
{
{
}
}
...
...
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