diff options
author | Thomas Jansen <mithi@mithi.net> | 2011-02-04 10:39:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-02-09 22:42:31 +0100 |
commit | 948b8f35e6fc578c85a0cfc8e143e1325ce99043 (patch) | |
tree | 022148bcb71a123f151d05b5936bc66ca35d332a /src/encoder | |
parent | e776c605adeb984aae290cdff38c5f8dd0cd291e (diff) | |
download | mpd-948b8f35e6fc578c85a0cfc8e143e1325ce99043.tar.gz mpd-948b8f35e6fc578c85a0cfc8e143e1325ce99043.tar.xz mpd-948b8f35e6fc578c85a0cfc8e143e1325ce99043.zip |
general: whitespace cleanup
Remove trailing whitespace found by this command:
find -name '*.[ch]' | xargs grep "[[:space:]]$"
Diffstat (limited to 'src/encoder')
-rw-r--r-- | src/encoder/flac_encoder.c | 6 | ||||
-rw-r--r-- | src/encoder/wave_encoder.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/encoder/flac_encoder.c b/src/encoder/flac_encoder.c index 73328fe81..c34faad00 100644 --- a/src/encoder/flac_encoder.c +++ b/src/encoder/flac_encoder.c @@ -55,7 +55,7 @@ static bool flac_encoder_configure(struct flac_encoder *encoder, const struct config_param *param, G_GNUC_UNUSED GError **error) { - encoder->compression = config_get_block_unsigned(param, + encoder->compression = config_get_block_unsigned(param, "compression", 5); return true; @@ -218,7 +218,7 @@ flac_encoder_open(struct encoder *_encoder, struct audio_format *audio_format, if (init_status != FLAC__STREAM_ENCODER_OK) { g_set_error(error, flac_encoder_quark(), 0, - "failed to initialize encoder: %s\n", + "failed to initialize encoder: %s\n", FLAC__StreamEncoderStateString[init_status]); flac_encoder_close(_encoder); return false; @@ -234,7 +234,7 @@ flac_encoder_open(struct encoder *_encoder, struct audio_format *audio_format, if(init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK) { g_set_error(error, flac_encoder_quark(), 0, - "failed to initialize encoder: %s\n", + "failed to initialize encoder: %s\n", FLAC__StreamEncoderInitStatusString[init_status]); flac_encoder_close(_encoder); return false; diff --git a/src/encoder/wave_encoder.c b/src/encoder/wave_encoder.c index 7398b45c7..938be5e5e 100644 --- a/src/encoder/wave_encoder.c +++ b/src/encoder/wave_encoder.c @@ -58,7 +58,7 @@ wave_encoder_quark(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 data_size = 0x0FFFFFFF; @@ -142,7 +142,7 @@ wave_encoder_open(struct encoder *_encoder, buffer = pcm_buffer_get(&encoder->buffer, sizeof(struct wave_header) ); /* create PCM wave header in initial buffer */ - fill_wave_header((struct wave_header *) buffer, + fill_wave_header((struct wave_header *) buffer, audio_format->channels, encoder->bits, audio_format->sample_rate, |