1
0
Fork 0
forked from len0rd/rockbox

Provide a reasonable fix for FS#12093 - Playback hanging after codec/playback rework. Also, get rid of an impossible buffering case (BUF_USED is always less than buffer_len) and remove a buffering API that is not used anywhere and shouldn't be needed (plugin API has to be incompatible).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29849 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-05-09 21:19:11 +00:00
parent 12e8e43236
commit 5a8f5b8330
4 changed files with 14 additions and 21 deletions

View file

@ -145,12 +145,12 @@ void* plugin_get_buffer(size_t *buffer_size);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
#define PLUGIN_API_VERSION 204
#define PLUGIN_API_VERSION 205
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
#define PLUGIN_MIN_API_VERSION 204
#define PLUGIN_MIN_API_VERSION 205
/* plugin return codes */
/* internal returns start at 0x100 to make exit(1..255) work */
@ -873,7 +873,6 @@ struct plugin_api {
ssize_t (*bufcuttail)(int handle_id, size_t size);
ssize_t (*buf_handle_offset)(int handle_id);
void (*buf_request_buffer_handle)(int handle_id);
void (*buf_set_base_handle)(int handle_id);
size_t (*buf_used)(void);
#endif