aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ffmpeg_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 19:54:57 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 19:54:57 +0100
commit21b8590b53699f92802cb95121e910033cbd4f11 (patch)
tree0a1d8fde8468929479d38a1e96e4938542e1d80a /src/decoder/ffmpeg_plugin.c
parentbbaedb17d52cf14cf1abc3f24a90dfa06f875440 (diff)
downloadmpd-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/ffmpeg_plugin.c')
-rw-r--r--src/decoder/ffmpeg_plugin.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c
index 6455cd1ce..d66202efa 100644
--- a/src/decoder/ffmpeg_plugin.c
+++ b/src/decoder/ffmpeg_plugin.c
@@ -45,7 +45,7 @@ typedef struct {
AVCodecContext *aCodecCtx;
AVCodec *aCodec;
struct decoder *decoder;
- InputStream *input;
+ struct input_stream *input;
struct tag *tag;
} BasePtrs;
@@ -54,7 +54,7 @@ typedef struct {
char url[8];
struct decoder *decoder;
- InputStream *input;
+ struct input_stream *input;
} FopsHelper;
/**
@@ -137,8 +137,9 @@ static int ffmpeg_init(void)
return 0;
}
-static int ffmpeg_helper(InputStream *input, int (*callback)(BasePtrs *ptrs),
- BasePtrs *ptrs)
+static int
+ffmpeg_helper(struct input_stream *input, int (*callback)(BasePtrs *ptrs),
+ BasePtrs *ptrs)
{
AVFormatContext *pFormatCtx;
AVCodecContext *aCodecCtx;
@@ -211,7 +212,8 @@ static int ffmpeg_helper(InputStream *input, int (*callback)(BasePtrs *ptrs),
return ret;
}
-static bool ffmpeg_try_decode(InputStream *input)
+static bool
+ffmpeg_try_decode(struct input_stream *input)
{
int ret;
if (input->seekable) {
@@ -320,7 +322,8 @@ static int ffmpeg_decode_internal(BasePtrs *base)
return 0;
}
-static int ffmpeg_decode(struct decoder *decoder, InputStream *input)
+static int
+ffmpeg_decode(struct decoder *decoder, struct input_stream *input)
{
BasePtrs base;
int ret;
@@ -352,7 +355,7 @@ static int ffmpeg_tag_internal(BasePtrs *base)
//no tag reading in ffmpeg, check if playable
static struct tag *ffmpeg_tag(char *file)
{
- InputStream input;
+ struct input_stream input;
BasePtrs base;
int ret;
struct tag *tag = NULL;