summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-12-17 16:12:10 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-12-17 16:33:50 -0500
commitdfff938dff089667038041fcb66262c87c3186c2 (patch)
treef592218ad9b33d8b0bb0e5c07bcb155f6243aaf4 /apps/plugin.h
parentd14e3f45a859045e81065bfd6740605be45c2349 (diff)
downloadrockbox-dfff938dff089667038041fcb66262c87c3186c2.tar.gz
rockbox-dfff938dff089667038041fcb66262c87c3186c2.zip
Get rid of useless playlist probing and fix up some data types.
Playback checked the files' presence before attempting to buffer the track. Just get rid of that and save an extra open/close call. It will find out if the path is bad when the metadata fails. Fix some size_t/off_t conflation. No need to update plugin version because no plugin actually uses bufopen(). Change-Id: I3db112449dc0b2eeb91c546f308880ac82494fc7
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index c96c4ac899..a8e7c2af64 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -925,7 +925,7 @@ struct plugin_api {
925 925
926#if (CONFIG_CODEC == SWCODEC) 926#if (CONFIG_CODEC == SWCODEC)
927 /* buffering API */ 927 /* buffering API */
928 int (*bufopen)(const char *file, size_t offset, enum data_type type, 928 int (*bufopen)(const char *file, off_t offset, enum data_type type,
929 void *user_data); 929 void *user_data);
930 int (*bufalloc)(const void *src, size_t size, enum data_type type); 930 int (*bufalloc)(const void *src, size_t size, enum data_type type);
931 bool (*bufclose)(int handle_id); 931 bool (*bufclose)(int handle_id);