projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Obtain afs status items directly from afs.
[paraslash.git]
/
mp3dec_filter.c
diff --git
a/mp3dec_filter.c
b/mp3dec_filter.c
index
8fa7094
..
92da4a5
100644
(file)
--- a/
mp3dec_filter.c
+++ b/
mp3dec_filter.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2005-200
8
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-200
9
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-84,8
+84,8
@@
next_frame:
out:
if (pmd->stream.next_frame) { /* we still have some data */
size_t off = pmd->stream.bufend - pmd->stream.next_frame;
out:
if (pmd->stream.next_frame) { /* we still have some data */
size_t off = pmd->stream.bufend - pmd->stream.next_frame;
-// PARA_INFO_LOG("off: %zd, rate: %u, returning %zd\n", off,
-
// fn->fc->samplerate, copy - off)
;
+ if (fn->loaded + 16384 <= fn->bufsize && off > 2048)
+
goto next_frame
;
return copy - off;
}
return copy;
return copy - off;
}
return copy;
@@
-159,8
+159,6
@@
void mp3dec_filter_init(struct filter *f)
f->close = mp3dec_close;
f->parse_config = mp3dec_parse_config;
f->help = (struct ggo_help) {
f->close = mp3dec_close;
f->parse_config = mp3dec_parse_config;
f->help = (struct ggo_help) {
- .purpose = mp3dec_filter_args_info_purpose,
- .usage = mp3dec_filter_args_info_usage,
.short_help = mp3dec_filter_args_info_help,
.detailed_help = mp3dec_filter_args_info_detailed_help
};
.short_help = mp3dec_filter_args_info_help,
.detailed_help = mp3dec_filter_args_info_detailed_help
};