summaryrefslogtreecommitdiffstats
path: root/ext/flac/gstflacenc.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-08-08 15:20:24 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-08 15:20:24 +0000
commitc0468721320c10978e70a4ac9072d1d8774e5e62 (patch)
treeaacb49eb7efe89f62998bbfc87a50824ed4908cc /ext/flac/gstflacenc.h
parent415ea1455fdcc19984f028361d675e62c79bf666 (diff)
ext/flac/gstflacenc.*: Handle non-zero start timestamps correctly, mark header packets as
Original commit message from CVS: * ext/flac/gstflacenc.c: (gst_flac_enc_write_callback), (gst_flac_enc_check_discont), (gst_flac_enc_chain), (gst_flac_enc_change_state): * ext/flac/gstflacenc.h: Handle non-zero start timestamps correctly, mark header packets as IN_CAPS and print a warning and suggest using audiorate if stream discontinuities are detected. When FLAC supports flushing the encoder somehow this should be done for discontinuities instead. Remove some unused variables from the instance struct.
Diffstat (limited to 'ext/flac/gstflacenc.h')
-rw-r--r--ext/flac/gstflacenc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/flac/gstflacenc.h b/ext/flac/gstflacenc.h
index 1c6a6c66..0e8e4be8 100644
--- a/ext/flac/gstflacenc.h
+++ b/ext/flac/gstflacenc.h
@@ -54,19 +54,14 @@ struct _GstFlacEnc {
* correct flow return upstream in case the push
* fails for some reason */
- gboolean first;
- GstBuffer *first_buf;
guint64 offset;
guint64 samples_written;
- gboolean eos;
gint channels;
gint width;
gint depth;
gint sample_rate;
- gboolean negotiated;
gint quality;
gboolean stopped;
- FLAC__int32 *data;
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
FLAC__SeekableStreamEncoder *encoder;
@@ -80,6 +75,11 @@ struct _GstFlacEnc {
/* 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 {