summaryrefslogtreecommitdiffstats
path: root/ext/flac/gstflacdec.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-06-07 20:09:05 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-06-07 20:09:05 +0000
commit51aa4cdbd7c7d6c44c0be51e036e2ebdda315511 (patch)
tree79ea1c359c4ad5179bc4d4f0da4f4b0db5ccf134 /ext/flac/gstflacdec.h
parente805a46dca1c48014b9403d56a69e8394313088d (diff)
FLAC updates, implement sample accurate seeking, add some convert/query functions, make the encoder write a header
Original commit message from CVS: FLAC updates, implement sample accurate seeking, add some convert/query functions, make the encoder write a header
Diffstat (limited to 'ext/flac/gstflacdec.h')
-rw-r--r--ext/flac/gstflacdec.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/ext/flac/gstflacdec.h b/ext/flac/gstflacdec.h
index 6faf1717..6ba447fd 100644
--- a/ext/flac/gstflacdec.h
+++ b/ext/flac/gstflacdec.h
@@ -24,6 +24,7 @@
#include <config.h>
#include <gst/gst.h>
+#include <gst/bytestream/bytestream.h>
#include <FLAC/all.h>
@@ -42,17 +43,25 @@ typedef struct _FlacDec FlacDec;
typedef struct _FlacDecClass FlacDecClass;
struct _FlacDec {
- GstElement element;
+ GstElement element;
- GstPad *sinkpad,*srcpad;
+ GstPad *sinkpad,*srcpad;
+ GstByteStream *bs;
- FLAC__StreamDecoder *decoder;
+ FLAC__SeekableStreamDecoder *decoder;
+ gint channels;
+ gint depth;
+ gint frequency;
- gint offset_left;
- GstBuffer *data_left;
+ gboolean need_discont;
+ gboolean seek_pending;
+ gint64 seek_value;
- gboolean eos;
- guint state;
+ gboolean init;
+ guint64 total_samples;
+ guint64 stream_samples;
+
+ gboolean eos;
};
struct _FlacDecClass {