diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-08-08 19:20:02 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-08-08 19:20:02 +0000 |
commit | 76f3f25ecfa58f98103ff8600456dc94948cfd11 (patch) | |
tree | f42bb441fad6d8da444e08f6f4c216be1868ba0c /ext/faad/gstfaad.h | |
parent | a649c14c8c7dfbf2d0a9f6399fd686902d21f4f4 (diff) | |
download | gst-plugins-bad-76f3f25ecfa58f98103ff8600456dc94948cfd11.tar.gz gst-plugins-bad-76f3f25ecfa58f98103ff8600456dc94948cfd11.tar.bz2 gst-plugins-bad-76f3f25ecfa58f98103ff8600456dc94948cfd11.zip |
ext/faad/gstfaad.*: Fix negotiation (#310932) and miscellaneous other stuff. Probably still needs some more work.
Original commit message from CVS:
* ext/faad/gstfaad.c: (gst_faad_base_init), (gst_faad_class_init),
(gst_faad_init), (gst_faad_setcaps), (gst_faad_srcgetcaps),
(gst_faad_event), (gst_faad_update_caps), (gst_faad_chain),
(gst_faad_change_state):
* ext/faad/gstfaad.h:
Fix negotiation (#310932) and miscellaneous other stuff. Probably
still needs some more work.
Diffstat (limited to 'ext/faad/gstfaad.h')
-rw-r--r-- | ext/faad/gstfaad.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ext/faad/gstfaad.h b/ext/faad/gstfaad.h index fa083aa4..e9f0a3cb 100644 --- a/ext/faad/gstfaad.h +++ b/ext/faad/gstfaad.h @@ -39,16 +39,14 @@ G_BEGIN_DECLS typedef struct _GstFaad { GstElement element; - /* pads */ - GstPad *srcpad, *sinkpad; + GstPad *srcpad; + GstPad *sinkpad; - /* cache for latest MPEG-frame */ - gint samplerate, - channels, - bps; + guint samplerate; /* sample rate of the last MPEG frame */ + guint channels; /* number of channels of the last frame */ + guint bps; /* bytes per sample */ - /* used to keep input leftovers */ - GstBuffer *tempbuf; + GstBuffer *tempbuf; /* used to keep input leftovers */ /* FAAD object */ faacDecHandle handle; @@ -58,6 +56,10 @@ typedef struct _GstFaad { guchar *channel_positions; gboolean need_channel_setup; gboolean packetised; /* We must differentiate between raw and packetised streams */ + + guint64 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; typedef struct _GstFaadClass { |