summaryrefslogtreecommitdiffstats
path: root/ext/speex/gstspeexenc.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-08-31 14:39:57 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-31 14:39:57 +0000
commit25896b3a93da2cc7a8b2c5418d874bdb0065c5ef (patch)
treeeef8dca6d7544e9a2af0784955eeced545064f0d /ext/speex/gstspeexenc.h
parent467b9f2861846accbc3cfbe726d163cf1be312a1 (diff)
ext/speex/gstspeexdec.c: Correctly take the granulepos from upstream if possible and correctly handle the granulepos ...
Original commit message from CVS: * ext/speex/gstspeexdec.c: (speex_dec_chain_parse_data): Correctly take the granulepos from upstream if possible and correctly handle the granulepos in various calculations: the granulepos is the sample number of the _last_ sample in a frame, not the first. * ext/speex/gstspeexenc.c: (gst_speex_enc_sinkevent), (gst_speex_enc_encode), (gst_speex_enc_chain), (gst_speex_enc_change_state): * ext/speex/gstspeexenc.h: Handle non-zero start timestamps in the encoder and detect/handle stream discontinuities. Fixes bug #547075.
Diffstat (limited to 'ext/speex/gstspeexenc.h')
-rw-r--r--ext/speex/gstspeexenc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/speex/gstspeexenc.h b/ext/speex/gstspeexenc.h
index a5de5110..a5bfb366 100644
--- a/ext/speex/gstspeexenc.h
+++ b/ext/speex/gstspeexenc.h
@@ -92,7 +92,6 @@ struct _GstSpeexEnc {
gboolean setup;
gboolean header_sent;
- gboolean eos;
guint64 samples_in;
guint64 bytes_out;
@@ -103,11 +102,17 @@ struct _GstSpeexEnc {
gint frame_size;
guint64 frameno;
+ guint64 frameno_out;
guint8 *comments;
gint comment_len;
gfloat input[MAX_FRAME_SIZE];
+
+ /* Timestamp and granulepos tracking */
+ GstClockTime start_ts;
+ GstClockTime next_ts;
+ guint64 granulepos_offset;
};
struct _GstSpeexEncClass {