From a979bd99d1f39ce727f04a3d761be159dc903391 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Thu, 20 Oct 2005 15:08:14 +0000 Subject: ext/faad/gstfaad.*: Do some timestamp smoothing (matroskademux apparently sends multiple buffers in a row with the sa... Original commit message from CVS: * ext/faad/gstfaad.c: (gst_faad_base_init), (gst_faad_class_init), (gst_faad_init), (gst_faad_srcgetcaps), (gst_faad_event), (gst_faad_chain), (gst_faad_change_state): * ext/faad/gstfaad.h: Do some timestamp smoothing (matroskademux apparently sends multiple buffers in a row with the same timestamp); fix duration on outgoing buffers; fix change state function; use GST_DEBUG_FUNCPTR for pad functions. --- ext/faad/gstfaad.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/faad/gstfaad.h') diff --git a/ext/faad/gstfaad.h b/ext/faad/gstfaad.h index e9f0a3cb3..419ce20d7 100644 --- a/ext/faad/gstfaad.h +++ b/ext/faad/gstfaad.h @@ -57,7 +57,8 @@ typedef struct _GstFaad { gboolean need_channel_setup; gboolean packetised; /* We must differentiate between raw and packetised streams */ - guint64 next_ts; /* timestamp of next buffer */ + gint64 prev_ts; /* timestamp of previous buffer */ + gint64 next_ts; /* timestamp of next buffer */ guint64 bytes_in; /* bytes received */ guint64 sum_dur_out; /* sum of durations of decoded buffers we sent out */ } GstFaad; -- cgit v1.2.3