diff options
author | Max Kellermann <max@duempel.org> | 2008-10-26 19:54:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-26 19:54:57 +0100 |
commit | 21b8590b53699f92802cb95121e910033cbd4f11 (patch) | |
tree | 0a1d8fde8468929479d38a1e96e4938542e1d80a /src/decoder/oggvorbis_plugin.c | |
parent | bbaedb17d52cf14cf1abc3f24a90dfa06f875440 (diff) | |
download | mpd-21b8590b53699f92802cb95121e910033cbd4f11.tar.gz mpd-21b8590b53699f92802cb95121e910033cbd4f11.tar.xz mpd-21b8590b53699f92802cb95121e910033cbd4f11.zip |
input_stream: removed the InputStream typedef
Everybody should use struct input_stream.
Diffstat (limited to 'src/decoder/oggvorbis_plugin.c')
-rw-r--r-- | src/decoder/oggvorbis_plugin.c | 10 |
1 files changed, 6 insertions, 4 deletions
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 |