X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=mp3_afh.c;h=398a334e0f51668e2a8acfc11b5f68e7051352bb;hb=aee7bc654a67f45556ad2c6dc0e98a06bc95c8ff;hp=4ed134fa1bc1f62d6be22f747d664adfdc6c5101;hpb=5d1e222d208a8505c6d0e0522ecd79599db57aa8;p=paraslash.git diff --git a/mp3_afh.c b/mp3_afh.c index 4ed134fa..398a334e 100644 --- a/mp3_afh.c +++ b/mp3_afh.c @@ -441,7 +441,7 @@ err_out: * Read mp3 information from audio file */ static int mp3_get_file_info(FILE *audio_file, char *info_str, - long unsigned *frames, int *seconds) + long unsigned *frames, int *seconds, size_t **vss_chunk_table) { int ret; @@ -456,16 +456,12 @@ static int mp3_get_file_info(FILE *audio_file, char *info_str, write_info_str(info_str); *frames = num_chunks; *seconds = mp3.seconds; + *vss_chunk_table = chunk_table; if (*seconds < 2 || !*frames) return -E_MP3_INFO; return 1; } -static int mp3_reposition_stream(__a_unused long unsigned new_frame) -{ - return 1; -} - static char *mp3_read_chunk(long unsigned current_chunk, ssize_t *len) { int ret; @@ -518,7 +514,6 @@ void mp3_init(struct audio_format_handler *p) { af = p; af->get_file_info = mp3_get_file_info; - af->reposition_stream = mp3_reposition_stream; af->read_chunk = mp3_read_chunk; af->close_audio_file = mp3_close_audio_file; af->get_header_info = NULL;