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/mp3_plugin.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/decoder/mp3_plugin.c') diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c index a0de30ba7..2d458ab97 100644 --- a/src/decoder/mp3_plugin.c +++ b/src/decoder/mp3_plugin.c @@ -125,12 +125,12 @@ typedef struct _mp3DecodeData { int decodedFirstFrame; unsigned long bitRate; struct decoder *decoder; - InputStream *inStream; + struct input_stream *inStream; enum mad_layer layer; } mp3DecodeData; static void initMp3DecodeData(mp3DecodeData * data, struct decoder *decoder, - InputStream * inStream) + struct input_stream *inStream) { data->muteFrame = MUTEFRAME_NONE; data->highestFrame = 0; @@ -753,7 +753,7 @@ static void mp3DecodeDataFinalize(mp3DecodeData * data) /* this is primarily used for getting total time for tags */ static int getMp3TotalTime(char *file) { - InputStream inStream; + struct input_stream inStream; mp3DecodeData data; int ret; @@ -770,9 +770,10 @@ static int getMp3TotalTime(char *file) return ret; } -static int openMp3FromInputStream(InputStream * inStream, mp3DecodeData * data, - struct decoder * decoder, struct tag ** tag, - ReplayGainInfo ** replayGainInfo) +static int +openMp3FromInputStream(struct input_stream *inStream, mp3DecodeData * data, + struct decoder *decoder, struct tag **tag, + ReplayGainInfo **replayGainInfo) { initMp3DecodeData(data, decoder, inStream); *tag = NULL; @@ -988,7 +989,8 @@ static void initAudioFormatFromMp3DecodeData(mp3DecodeData * data, af->channels = MAD_NCHANNELS(&(data->frame).header); } -static int mp3_decode(struct decoder * decoder, InputStream * inStream) +static int +mp3_decode(struct decoder * decoder, struct input_stream *inStream) { mp3DecodeData data; struct tag *tag = NULL; -- cgit v1.2.3