From 80c3258a6ac2c796df247dd372e94e3a765a93c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 29 Oct 2008 12:11:20 +0000 Subject: gst/speexresample/gstspeexresample.*: Rewrite timestamp tracking to make it more robust and guarantee a continous str... Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_start), (gst_speex_resample_get_unit_size), (gst_speex_resample_push_drain), (gst_speex_resample_event), (gst_speex_resample_check_discont), (gst_speex_resample_process), (gst_speex_resample_transform): * gst/speexresample/gstspeexresample.h: Rewrite timestamp tracking to make it more robust and guarantee a continous stream. * tests/check/Makefile.am: * tests/check/elements/speexresample.c: (setup_speexresample), (cleanup_speexresample), (fail_unless_perfect_stream), (test_perfect_stream_instance), (GST_START_TEST), (test_discont_stream_instance), (live_switch_alloc_only_48000), (live_switch_get_sink_caps), (live_switch_push), (speexresample_suite): Add unit tests for speexresample based on the audioresample unit tests. --- gst/speexresample/gstspeexresample.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gst/speexresample/gstspeexresample.h') diff --git a/gst/speexresample/gstspeexresample.h b/gst/speexresample/gstspeexresample.h index 8d1413c9..7e7a68f6 100644 --- a/gst/speexresample/gstspeexresample.h +++ b/gst/speexresample/gstspeexresample.h @@ -57,10 +57,9 @@ struct _GstSpeexResample { gboolean need_discont; - guint64 offset; - guint64 ts_offset; + guint64 next_offset; GstClockTime next_ts; - GstClockTime prev_ts, prev_duration; + GstClockTime next_upstream_ts; gboolean fp; gint channels; -- cgit v1.2.1