summaryrefslogtreecommitdiff
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
commit6940042ecf306d85d9375c0c9bcd6b635f89abde (patch)
treea326e581893f42919d0ab354877c85786830b3b9 /gst/audioresample/gstaudioresample.h
parent8b80c6f13a684e7b91de35ac85cb9b72162aea23 (diff)
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 8baa2c909..c969ccdbb 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;