aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder/lame_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/encoder/lame_encoder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/encoder/lame_encoder.c b/src/encoder/lame_encoder.c
index 3bb99ea28..53594d34e 100644
--- a/src/encoder/lame_encoder.c
+++ b/src/encoder/lame_encoder.c
@@ -23,6 +23,9 @@
#include "audio_format.h"
#include <lame/lame.h>
+
+#include <glib.h>
+
#include <assert.h>
#include <string.h>
@@ -225,7 +228,7 @@ lame_encoder_close(struct encoder *_encoder)
static bool
lame_encoder_write(struct encoder *_encoder,
const void *data, size_t length,
- G_GNUC_UNUSED GError **error)
+ gcc_unused GError **error)
{
struct lame_encoder *encoder = (struct lame_encoder *)_encoder;
unsigned num_frames;
@@ -283,7 +286,7 @@ lame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
}
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";
}