From ad37c88f800a09b75ae3174269bcdf3584406837 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Sep 2011 22:25:29 +0200 Subject: input_plugin: add method update() Update the struct attributes, important for facades like the "rewind" plugin. To replace buffer(). --- src/input_stream.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/input_stream.c') diff --git a/src/input_stream.c b/src/input_stream.c index d207188cd..effa24798 100644 --- a/src/input_stream.c +++ b/src/input_stream.c @@ -67,6 +67,16 @@ input_stream_open(const char *url, GError **error_r) return false; } +void +input_stream_update(struct input_stream *is) +{ + assert(is != NULL); + assert(is->plugin != NULL); + + if (is->plugin->update != NULL) + is->plugin->update(is); +} + bool input_stream_seek(struct input_stream *is, goffset offset, int whence, GError **error_r) -- cgit v1.2.3