aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-22 18:03:51 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 11:02:13 +0100
commit7c6ac43f82d3870f65832f1f5aa74f26bc9cd9ab (patch)
treeb9acb2ff066fc311832bedaf789057c16438bc96
parenta29e3b78c9aa84d2c6b6a73865be1afc310579d2 (diff)
libav decoder plugin: drop silly G_foo attributes
-rw-r--r--src/decoder/libav_decoder_plugin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/libav_decoder_plugin.c b/src/decoder/libav_decoder_plugin.c
index cb2c91cb..2b37e67d 100644
--- a/src/decoder/libav_decoder_plugin.c
+++ b/src/decoder/libav_decoder_plugin.c
@@ -68,7 +68,7 @@ static GLogLevelFlags level_libav_to_glib(int level)
return G_LOG_LEVEL_DEBUG;
}
-static void mpd_libav_log_callback(G_GNUC_UNUSED void *ptr, int level,
+static void mpd_libav_log_callback(void *ptr, int level,
const char *fmt, va_list vl)
{
const AVClass * cls = NULL;
@@ -177,7 +177,7 @@ fail:
}
static bool
-libav_init(G_GNUC_UNUSED const struct config_param *param)
+libav_init(const struct config_param *param)
{
av_log_set_callback(mpd_libav_log_callback);
@@ -185,14 +185,14 @@ libav_init(G_GNUC_UNUSED const struct config_param *param)
return true;
}
-G_GNUC_CONST static double time_from_libav(int64_t t, const AVRational time_base)
+static double time_from_libav(int64_t t, const AVRational time_base)
{
assert(t != (int64_t)AV_NOPTS_VALUE);
return (double)av_rescale_q(t, time_base, (AVRational){1, 1024}) / (double)1024;
}
-G_GNUC_CONST static int64_t time_to_libav(double t, const AVRational time_base)
+static int64_t time_to_libav(double t, const AVRational time_base)
{
return av_rescale_q((int64_t)(t * 1024), (AVRational){1, 1024}, time_base);
}
@@ -283,7 +283,7 @@ static enum decoder_command libav_send_packet(struct decoder *decoder,
return cmd;
}
-static enum sample_format libav_sample_format(G_GNUC_UNUSED const AVCodecContext *codec_context)
+static enum sample_format libav_sample_format(const AVCodecContext *codec_context)
{
switch (codec_context->sample_fmt) {
case AV_SAMPLE_FMT_S16: