X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh.c;h=483c8365d0cc437757023e725b5a8a8d294d4953;hp=81f5ac1ae8c0b0a1e6496fe1470be3a43c0023f3;hb=aee7bc654a67f45556ad2c6dc0e98a06bc95c8ff;hpb=5d1e222d208a8505c6d0e0522ecd79599db57aa8 diff --git a/ogg_afh.c b/ogg_afh.c index 81f5ac1a..483c8365 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -222,7 +222,7 @@ static int ogg_save_header(FILE *file, int len) * Init oggvorbis file and write some tech data to given pointers. */ static int ogg_get_file_info(FILE *file, char *info_str, long unsigned *frames, - int *seconds) + int *seconds, size_t **vss_chunk_table) { int ret; double time_total; @@ -259,6 +259,7 @@ static int ogg_get_file_info(FILE *file, char *info_str, long unsigned *frames, vi_channels = vi->channels; ogg_compute_chunk_table(time_total); *frames = num_chunks; + *vss_chunk_table = chunk_table; sprintf(info_str, "audio_file_info1:%zu x %lu, %ldkHz, %d channels, %ldkbps\n" "audio_file_info2: \n" "audio_file_info3: \n", @@ -272,11 +273,6 @@ err: return ret; } -static int ogg_reposition_stream(__a_unused long unsigned new_frame) -{ - return 1; -} - static char *ogg_read_chunk(long unsigned current_chunk, ssize_t *len) { int ret; @@ -324,7 +320,6 @@ static const char* ogg_suffixes[] = {"ogg", NULL}; void ogg_init(struct audio_format_handler *p) { af = p; - af->reposition_stream = ogg_reposition_stream; af->get_file_info = ogg_get_file_info, af->read_chunk = ogg_read_chunk; af->close_audio_file = ogg_close_audio_file;