summaryrefslogtreecommitdiffstats
path: root/gst/audioresample/gstaudioresample.h
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2007-03-14 17:16:30 +0000
committerJulien Moutte <julien@moutte.net>2007-03-14 17:16:30 +0000
commite3ef9cd15d1f0fc55702c29cfb60338325b54065 (patch)
treec0b143ee7cb4477fe91bdb80607c90ee0178fceb /gst/audioresample/gstaudioresample.h
parent04a574c282831d6b150244b3a8c8c791a9ea81ba (diff)
downloadgst-plugins-bad-e3ef9cd15d1f0fc55702c29cfb60338325b54065.tar.gz
gst-plugins-bad-e3ef9cd15d1f0fc55702c29cfb60338325b54065.tar.bz2
gst-plugins-bad-e3ef9cd15d1f0fc55702c29cfb60338325b54065.zip
gst/audioresample/gstaudioresample.c: Handle discontinuous streams.
Original commit message from CVS: 2007-03-14 Julien MOUTTE <julien@moutte.net> * gst/audioresample/gstaudioresample.c: (gst_audioresample_init), (audioresample_transform_size), (audioresample_do_output), (audioresample_transform), (audioresample_pushthrough): Handle discontinuous streams. * gst/audioresample/gstaudioresample.h: * tests/check/elements/audioresample.c: (test_discont_stream_instance), (GST_START_TEST), (audioresample_suite): Add a test for discontinuous streams. * win32/common/config.h: Updated.
Diffstat (limited to 'gst/audioresample/gstaudioresample.h')
-rw-r--r--gst/audioresample/gstaudioresample.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/audioresample/gstaudioresample.h b/gst/audioresample/gstaudioresample.h
index 8baa2c90..c969ccdb 100644
--- a/gst/audioresample/gstaudioresample.h
+++ b/gst/audioresample/gstaudioresample.h
@@ -53,10 +53,12 @@ struct _GstAudioresample {
GstCaps *srccaps, *sinkcaps;
gboolean passthru;
+ gboolean need_discont;
guint64 offset;
guint64 ts_offset;
GstClockTime next_ts;
+ GstClockTime prev_ts, prev_duration;
int channels;
int i_rate;