diff options
Diffstat (limited to 'ext/flac/gstflacenc.h')
-rw-r--r-- | ext/flac/gstflacenc.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/ext/flac/gstflacenc.h b/ext/flac/gstflacenc.h index 0460a70..9084892 100644 --- a/ext/flac/gstflacenc.h +++ b/ext/flac/gstflacenc.h @@ -22,6 +22,7 @@ #define __GST_FLAC_ENC_H__ #include <gst/gst.h> +#include <gst/audio/gstaudioencoder.h> #include <FLAC/all.h> @@ -37,19 +38,15 @@ typedef struct _GstFlacEnc GstFlacEnc; typedef struct _GstFlacEncClass GstFlacEncClass; struct _GstFlacEnc { - GstElement element; + GstAudioEncoder element; /* < private > */ - GstPad *sinkpad; - GstPad *srcpad; - GstFlowReturn last_flow; /* save flow from last push so we can pass the * correct flow return upstream in case the push * fails for some reason */ guint64 offset; - guint64 samples_written; gint channels; gint width; gint depth; @@ -59,27 +56,20 @@ struct _GstFlacEnc { guint padding; gint seekpoints; -#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8 - FLAC__SeekableStreamEncoder *encoder; -#else FLAC__StreamEncoder *encoder; -#endif + FLAC__StreamMetadata **meta; GstTagList * tags; + gboolean eos; /* queue headers until we have them all so we can add streamheaders to caps */ gboolean got_headers; GList *headers; - - /* Timestamp and granulepos tracking */ - GstClockTime start_ts; - GstClockTime next_ts; - guint64 granulepos_offset; }; struct _GstFlacEncClass { - GstElementClass parent_class; + GstAudioEncoderClass parent_class; }; GType gst_flac_enc_get_type(void); |