aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/FLACCommon.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-02 19:47:31 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 19:47:31 +0200
commitc9e700f07928b4a7dd34b8fdd2a00c226fd9b0b4 (patch)
tree1efc17fc0611d4cf132831b9c2215631aebf3d40 /src/decoder/FLACCommon.hxx
parent3c2d73d161814a1cac543f2623671feb0b7c8fe9 (diff)
downloadmpd-c9e700f07928b4a7dd34b8fdd2a00c226fd9b0b4.tar.gz
mpd-c9e700f07928b4a7dd34b8fdd2a00c226fd9b0b4.tar.xz
mpd-c9e700f07928b4a7dd34b8fdd2a00c226fd9b0b4.zip
decoder/flac: add ctor/dtor to struct flac_data
Diffstat (limited to 'src/decoder/FLACCommon.hxx')
-rw-r--r--src/decoder/FLACCommon.hxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/decoder/FLACCommon.hxx b/src/decoder/FLACCommon.hxx
index 3d280cc49..501c58f62 100644
--- a/src/decoder/FLACCommon.hxx
+++ b/src/decoder/FLACCommon.hxx
@@ -78,18 +78,15 @@ struct flac_data {
FLAC__uint64 next_frame;
FLAC__uint64 position;
+
struct decoder *decoder;
struct input_stream *input_stream;
- struct tag *tag;
-};
-/* initializes a given FlacData struct */
-void
-flac_data_init(struct flac_data *data, struct decoder * decoder,
- struct input_stream *input_stream);
+ struct tag *tag;
-void
-flac_data_deinit(struct flac_data *data);
+ flac_data(struct decoder *decoder, struct input_stream *input_stream);
+ ~flac_data();
+};
void flac_metadata_common_cb(const FLAC__StreamMetadata * block,
struct flac_data *data);