diff options
| author | 2025-03-31 19:16:50 -0400 | |
|---|---|---|
| committer | 2025-03-31 19:16:50 -0400 | |
| commit | c8b3ed01a41c0215a4a33ce8468b162463129600 (patch) | |
| tree | b29fad1faf0d172e2e46be9a73f9b3bc73f8b29a /src/codec | |
| parent | 2f34d806e42b6d6299ef46284466b98536485839 (diff) | |
| download | camu-c8b3ed01a41c0215a4a33ce8468b162463129600.tar.gz camu-c8b3ed01a41c0215a4a33ce8468b162463129600.tar.bz2 camu-c8b3ed01a41c0215a4a33ce8468b162463129600.zip | |
Overall style change, small fixes
- Tweak sink switch_to() order.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/codec')
| -rw-r--r-- | src/codec/codec.h | 8 |
1 files changed, 2 insertions, 6 deletions
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 |