From 8a7d104a359aec7776712cb366d1d92e0f0328a8 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 21 Aug 2005 18:12:31 +0000 Subject: Now codecs will do the buffer flushing after seeking as they find it necessary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7369 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/codecs.h') diff --git a/apps/codecs.h b/apps/codecs.h index 3b8e1d8394..4a4ccb229c 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -79,7 +79,7 @@ #endif /* increase this every time the api struct changes */ -#define CODEC_API_VERSION 40 +#define CODEC_API_VERSION 41 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -327,6 +327,8 @@ struct codec_api { void *(*memchr)(const void *s1, int c, size_t n); void (*set_offset)(unsigned int value); + /* Codec should call this function when it has done the seeking. */ + void (*seek_complete)(void); }; /* defined by the codec loader (codec.c) */ -- cgit v1.2.3