diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-06-20 19:40:29 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-06-20 19:40:29 +0000 |
commit | d1961af6888ba5ec94bc746728b3f787beb02475 (patch) | |
tree | a7cfd2d3b781ac28fe75d82edb61e37c746f4750 /ext/flac/gstflacdec.h | |
parent | afa01df289f29d859438606e406f1171f45f996d (diff) |
ext/flac/: Support chain-based operation, should make flac-over-DAAP work (#340492).
Original commit message from CVS:
* ext/flac/Makefile.am:
* ext/flac/gstflacdec.c: (gst_flac_dec_init),
(gst_flac_dec_reset_decoders),
(gst_flac_dec_setup_seekable_decoder),
(gst_flac_dec_setup_stream_decoder), (gst_flac_dec_finalize),
(gst_flac_dec_metadata_callback),
(gst_flac_dec_metadata_callback_seekable),
(gst_flac_dec_metadata_callback_stream),
(gst_flac_dec_error_callback),
(gst_flac_dec_error_callback_seekable),
(gst_flac_dec_error_callback_stream), (gst_flac_dec_read_seekable),
(gst_flac_dec_read_stream), (gst_flac_dec_write),
(gst_flac_dec_write_seekable), (gst_flac_dec_write_stream),
(gst_flac_dec_loop), (gst_flac_dec_sink_event),
(gst_flac_dec_chain), (gst_flac_dec_convert_sink),
(gst_flac_dec_get_sink_query_types), (gst_flac_dec_sink_query),
(gst_flac_dec_get_src_query_types), (gst_flac_dec_src_query),
(gst_flac_dec_handle_seek_event), (gst_flac_dec_sink_activate),
(gst_flac_dec_sink_activate_push),
(gst_flac_dec_sink_activate_pull), (gst_flac_dec_change_state):
* ext/flac/gstflacdec.h:
Support chain-based operation, should make flac-over-DAAP
work (#340492).
Diffstat (limited to 'ext/flac/gstflacdec.h')
-rw-r--r-- | ext/flac/gstflacdec.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/flac/gstflacdec.h b/ext/flac/gstflacdec.h index 17c232cd..d2762d5a 100644 --- a/ext/flac/gstflacdec.h +++ b/ext/flac/gstflacdec.h @@ -23,6 +23,7 @@ #include <gst/gst.h> +#include <gst/base/gstadapter.h> #include <FLAC/all.h> @@ -40,7 +41,11 @@ typedef struct _GstFlacDecClass GstFlacDecClass; struct _GstFlacDec { GstElement element; - FLAC__SeekableStreamDecoder *decoder; + FLAC__SeekableStreamDecoder *seekable_decoder; /* for pull-based operation */ + + FLAC__StreamDecoder *stream_decoder; /* for chain-based operation */ + GstAdapter *adapter; + gboolean framed; GstPad *sinkpad; GstPad *srcpad; |