mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
General housekeeping: Make plugin buffer functions take size_t * instead of int * to match the parameter type of the buffer functions called in the core. Get rid of unsafe int * <==> size_t * casting. Use ssize_t where int was used and size_t where unsigned int was used in the buffer calls to not alter signedness in the plugins. No API version change since it should only be an issue for 64-bit sim builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cf6f4cf6f1
commit
26d242ae65
37 changed files with 52 additions and 51 deletions
|
@ -1607,7 +1607,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
{
|
||||
int status = PLUGIN_ERROR; /* assume failure */
|
||||
void* audiobuf;
|
||||
int audiosize;
|
||||
ssize_t audiosize;
|
||||
int in_file;
|
||||
uint8_t* buffer;
|
||||
size_t file_remaining;
|
||||
|
@ -1652,7 +1652,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
buffer_size = audiosize - (PCMBUFFER_SIZE+PCMBUFFER_GUARD_SIZE+
|
||||
MPABUF_SIZE+LIBMPEG2BUFFER_SIZE);
|
||||
|
||||
DEBUGF("audiosize=%d, buffer_size=%ld\n",audiosize,buffer_size);
|
||||
DEBUGF("audiosize=%ld, buffer_size=%ld\n",audiosize,buffer_size);
|
||||
buffer = mpeg2_malloc(buffer_size,-1);
|
||||
|
||||
if (buffer == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue