From 3aa2787e343c84c2404aecb71a3123784e8fb85d Mon Sep 17 00:00:00 2001 From: nu774 Date: Tue, 29 Oct 2013 19:21:34 +0900 Subject: [PATCH] fix pcm_seek() to inline --- src/pcm_reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm_reader.h b/src/pcm_reader.h index b9490a4..ee062aa 100644 --- a/src/pcm_reader.h +++ b/src/pcm_reader.h @@ -85,7 +85,7 @@ uint32_t bitcount(uint32_t bits) int pcm_read(pcm_io_context_t *io, void *buffer, uint32_t size); int pcm_skip(pcm_io_context_t *io, int64_t count); -static int pcm_seek(pcm_io_context_t *io, int64_t off, int whence) +static inline int pcm_seek(pcm_io_context_t *io, int64_t off, int whence) { return io->vtbl->seek ? io->vtbl->seek(io->cookie, off, whence) : -1; } -- 2.30.2