From c8b3ed01a41c0215a4a33ce8468b162463129600 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 31 Mar 2025 19:16:50 -0400 Subject: Overall style change, small fixes - Tweak sink switch_to() order. Signed-off-by: Andrew Opalach --- src/codec/codec.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/codec') diff --git a/src/codec/codec.h b/src/codec/codec.h index 09a1892..1c7c21f 100644 --- a/src/codec/codec.h +++ b/src/codec/codec.h @@ -233,8 +233,6 @@ struct camu_scaler { void (*free)(struct camu_scaler **); }; -AL_UNUSED_FUNCTION_PUSH - static inline bool camu_resampler_format_matches(struct camu_resampler_format *fmt) { return fmt->in.format == fmt->req.format @@ -255,7 +253,7 @@ static inline void camu_audio_format_copy(struct camu_audio_format *dest, struct dest->channel_count = src->channel_count; } -static const char *camu_audio_format_name(s32 format) +static inline const char *camu_audio_format_name(s32 format) { #ifdef CAMU_HAVE_FFMPEG return av_get_sample_fmt_name(format); @@ -335,7 +333,7 @@ static inline void camu_video_format_copy(struct camu_video_format *dest, struct dest->format = src->format; } -static const char *camu_pixel_format_name(s32 format) +static inline const char *camu_pixel_format_name(s32 format) { #ifdef CAMU_HAVE_FFMPEG return av_get_pix_fmt_name(format); @@ -369,5 +367,3 @@ static inline void camu_codec_frame_discard(struct camu_codec_frame *frame) if (frame->mode == CAMU_NORMAL && frame->data) al_free(frame->data); al_free(frame); } - -AL_UNUSED_FUNCTION_POP -- cgit v1.2.3-101-g0448