From ae9262409f95382384a5c8c0b350e6e76151c2f5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 18 May 2023 10:21:47 +0200 Subject: [PATCH] audioconvert: suggest to inline some functions --- spa/plugins/audioconvert/audioconvert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index da875563c..293126be9 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -2227,7 +2227,7 @@ impl_node_port_set_param(void *object, } } -static void queue_buffer(struct impl *this, struct port *port, uint32_t id) +static inline void queue_buffer(struct impl *this, struct port *port, uint32_t id) { struct buffer *b = &port->buffers[id]; @@ -2240,7 +2240,7 @@ static void queue_buffer(struct impl *this, struct port *port, uint32_t id) SPA_FLAG_SET(b->flags, BUFFER_FLAG_QUEUED); } -static struct buffer *peek_buffer(struct impl *this, struct port *port) +static inline struct buffer *peek_buffer(struct impl *this, struct port *port) { struct buffer *b; @@ -2256,7 +2256,7 @@ static struct buffer *peek_buffer(struct impl *this, struct port *port) return b; } -static void dequeue_buffer(struct impl *this, struct port *port, struct buffer *b) +static inline void dequeue_buffer(struct impl *this, struct port *port, struct buffer *b) { spa_list_remove(&b->link); SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_QUEUED); @@ -2491,7 +2491,7 @@ static int channelmix_process_apply_sequence(struct impl *this, return end ? 1 : 0; } -static uint32_t resample_get_in_size(struct impl *this, bool passthrough, uint32_t out_size) +static inline uint32_t resample_get_in_size(struct impl *this, bool passthrough, uint32_t out_size) { uint32_t match_size = passthrough ? out_size : resample_in_len(&this->resample, out_size); spa_log_trace_fp(this->log, "%p: current match %u", this, match_size);