summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs.h10
-rw-r--r--apps/plugin.h10
-rw-r--r--apps/plugins/vbrfix.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index 517d68ba03..d7242a8330 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -79,12 +79,12 @@
#endif
/* increase this every time the api struct changes */
-#define CODEC_API_VERSION 43
+#define CODEC_API_VERSION 44
/* 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 CODEC_MIN_API_VERSION 43
+#define CODEC_MIN_API_VERSION 44
/* codec return codes */
enum codec_status {
@@ -303,9 +303,9 @@ struct codec_api {
bool (*mp3info)(struct mp3entry *entry, const char *filename, bool v1first);
int (*count_mp3_frames)(int fd, int startpos, int filesize,
void (*progressfunc)(int));
- int (*create_xing_header)(int fd, int startpos, int filesize,
- unsigned char *buf, int num_frames,
- unsigned long header_template,
+ int (*create_xing_header)(int fd, long startpos, long filesize,
+ unsigned char *buf, unsigned long num_frames,
+ unsigned long rec_time, unsigned long header_template,
void (*progressfunc)(int), bool generate_toc);
unsigned long (*find_next_frame)(int fd, long *offset,
long max_offset, unsigned long last_header);
diff --git a/apps/plugin.h b/apps/plugin.h
index 01ace98690..5cc9c1b58a 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -89,12 +89,12 @@
#endif
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 50
+#define PLUGIN_API_VERSION 51
/* 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 50
+#define PLUGIN_MIN_API_VERSION 51
/* plugin return codes */
enum plugin_status {
@@ -404,9 +404,9 @@ struct plugin_api {
bool (*mp3info)(struct mp3entry *entry, const char *filename, bool v1first);
int (*count_mp3_frames)(int fd, int startpos, int filesize,
void (*progressfunc)(int));
- int (*create_xing_header)(int fd, int startpos, int filesize,
- unsigned char *buf, int num_frames,
- unsigned long header_template,
+ int (*create_xing_header)(int fd, long startpos, long filesize,
+ unsigned char *buf, unsigned long num_frames,
+ unsigned long rec_time, unsigned long header_template,
void (*progressfunc)(int), bool generate_toc);
unsigned long (*find_next_frame)(int fd, long *offset,
long max_offset, unsigned long last_header);
diff --git a/apps/plugins/vbrfix.c b/apps/plugins/vbrfix.c
index b821b9c5fa..ca6b9ca096 100644
--- a/apps/plugins/vbrfix.c
+++ b/apps/plugins/vbrfix.c
@@ -168,7 +168,7 @@ static bool vbr_fix(char *selected_file)
/* Note: We don't need to pass a template header because it will be
taken from the mpeg stream */
framelen = rb->create_xing_header(fd, entry.first_frame_offset,
- flen, xingbuf, num_frames,
+ flen, xingbuf, num_frames, 0,
0, xingupdate, true);
/* Try to fit the Xing header first in the stream. Replace the existing