From 21b8590b53699f92802cb95121e910033cbd4f11 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Oct 2008 19:54:57 +0100 Subject: input_stream: removed the InputStream typedef Everybody should use struct input_stream. --- src/decoder/oggvorbis_plugin.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/decoder/oggvorbis_plugin.c') diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c index 0eecb783f..7fb47cceb 100644 --- a/src/decoder/oggvorbis_plugin.c +++ b/src/decoder/oggvorbis_plugin.c @@ -44,7 +44,7 @@ #endif typedef struct _OggCallbackData { - InputStream *inStream; + struct input_stream *inStream; struct decoder *decoder; } OggCallbackData; @@ -56,7 +56,7 @@ static size_t ogg_read_cb(void *ptr, size_t size, size_t nmemb, void *vdata) ret = decoder_read(data->decoder, data->inStream, ptr, size * nmemb); errno = 0; - /*if(ret<0) errno = ((InputStream *)inStream)->error; */ + /*if(ret<0) errno = ((struct input_stream *)inStream)->error; */ return ret / size; } @@ -200,7 +200,8 @@ static void putOggCommentsIntoOutputBuffer(char *streamName, } /* public */ -static int oggvorbis_decode(struct decoder * decoder, InputStream * inStream) +static int +oggvorbis_decode(struct decoder *decoder, struct input_stream *inStream) { OggVorbis_File vf; ov_callbacks callbacks; @@ -360,7 +361,8 @@ static struct tag *oggvorbis_TagDup(char *file) return ret; } -static bool oggvorbis_try_decode(InputStream * inStream) +static bool +oggvorbis_try_decode(struct input_stream *inStream) { if (!inStream->seekable) /* we cannot seek after the detection, so don't bother -- cgit v1.2.3