diff options
Diffstat (limited to 'src/decoder/libav_decoder_plugin.c')
-rw-r--r-- | src/decoder/libav_decoder_plugin.c | 10 |
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: |