X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg.c;h=fa935d5090abb2a9eddb06fd87676b688fe63fc9;hp=2d584e5be5a84f8d5ce9e4f1a2f0eb7ca928f7d1;hb=e921be422a216b87e3e6812f16b27c9a6927099d;hpb=a8a78f935dcefa8a7fcda8dae80bca64fe39d632 diff --git a/ogg.c b/ogg.c index 2d584e5b..fa935d50 100644 --- a/ogg.c +++ b/ogg.c @@ -36,7 +36,7 @@ static FILE *infile; static int header_len, oggbuf_len, vi_channels; static char *header, *oggbuf; static ssize_t *chunk_table, max_chunk_len; -struct audio_format *af; +struct audio_format_handler *af; static long vi_sampling_rate, vi_bitrate, vi_bitrate_nominal, num_chunks; @@ -345,6 +345,7 @@ static char *ogg_get_header_info(int *len) return header; } +static const char* ogg_suffixes[] = {"ogg", NULL}; void ogg_init(void *p) { af = p; @@ -356,4 +357,5 @@ void ogg_init(void *p) af->chunk_tv.tv_sec = 0; af->chunk_tv.tv_usec = 250 * 1000; tv_scale(3, &af->chunk_tv, &af->eof_tv); + af->suffixes = ogg_suffixes; }