diff options
author | Max Kellermann <max@duempel.org> | 2009-11-08 21:43:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-08 21:43:19 +0100 |
commit | 5ef62312af7a6e4e2f08df994bfee4596f6545d6 (patch) | |
tree | feb946949e8cbe3aab41ac04f9870d8be4c2d914 /src/encoder | |
parent | 5479ed7cfb012710ddcd2f8ae6a8a29bea4a9b46 (diff) | |
download | mpd-5ef62312af7a6e4e2f08df994bfee4596f6545d6.tar.gz mpd-5ef62312af7a6e4e2f08df994bfee4596f6545d6.tar.xz mpd-5ef62312af7a6e4e2f08df994bfee4596f6545d6.zip |
encoder/null: removed unused audio_format attribute
Diffstat (limited to 'src/encoder')
-rw-r--r-- | src/encoder/null_encoder.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/encoder/null_encoder.c b/src/encoder/null_encoder.c index 218a0cb5f..6e0e5b802 100644 --- a/src/encoder/null_encoder.c +++ b/src/encoder/null_encoder.c @@ -19,7 +19,6 @@ #include "encoder_api.h" #include "encoder_plugin.h" -#include "audio_format.h" #include <assert.h> #include <string.h> @@ -29,8 +28,6 @@ struct null_encoder { struct encoder encoder; - struct audio_format audio_format; - unsigned char buffer[MAX_BUFFER]; size_t buffer_length; }; @@ -64,12 +61,12 @@ null_encoder_finish(struct encoder *_encoder) } static bool -null_encoder_open(struct encoder *_encoder, struct audio_format *audio_format, +null_encoder_open(struct encoder *_encoder, + G_GNUC_UNUSED struct audio_format *audio_format, G_GNUC_UNUSED GError **error) { struct null_encoder *encoder = (struct null_encoder *)_encoder; - encoder->audio_format = *audio_format; encoder->buffer_length = 0; return true; |