From 154aa496e8c18bba3dc10c607987c187f4686ae4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:04 +0200 Subject: added struct decoder The decoder struct should later be made opaque to the decoder plugin, because maintaining a stable struct ABI is quite difficult. The ABI should only consist of a small number of stable functions. --- src/inputPlugins/_flac_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/inputPlugins/_flac_common.c') diff --git a/src/inputPlugins/_flac_common.c b/src/inputPlugins/_flac_common.c index 9e70662be..e1017e596 100644 --- a/src/inputPlugins/_flac_common.c +++ b/src/inputPlugins/_flac_common.c @@ -30,12 +30,14 @@ #include #include -void init_FlacData(FlacData * data, InputStream * inStream) +void init_FlacData(FlacData * data, struct decoder * decoder, + InputStream * inStream) { data->chunk_length = 0; data->time = 0; data->position = 0; data->bitRate = 0; + data->decoder = decoder; data->inStream = inStream; data->replayGainInfo = NULL; data->tag = NULL; -- cgit v1.2.3