From 9d608aed4da8cf0bfc96f348c5d70f64e4b51168 Mon Sep 17 00:00:00 2001 From: Maciej Katafiasz Date: Mon, 24 Jan 2005 21:57:15 +0000 Subject: Apply patch from Jeffrey C. Ollie. Fixes rate (now always 8kHz) and adds timestamps Original commit message from CVS: Apply patch from Jeffrey C. Ollie. Fixes rate (now always 8kHz) and adds timestamps --- ext/gsm/gstgsmdec.h | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'ext/gsm/gstgsmdec.h') diff --git a/ext/gsm/gstgsmdec.h b/ext/gsm/gstgsmdec.h index 0544128b5..4de6d9b6b 100644 --- a/ext/gsm/gstgsmdec.h +++ b/ext/gsm/gstgsmdec.h @@ -17,11 +17,9 @@ * Boston, MA 02111-1307, USA. */ - #ifndef __GST_GSMDEC_H__ #define __GST_GSMDEC_H__ - #include #ifdef GSM_HEADER_IN_SUBDIR @@ -30,10 +28,7 @@ #include #endif -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +G_BEGIN_DECLS #define GST_TYPE_GSMDEC \ (gst_gsmdec_get_type()) @@ -49,27 +44,27 @@ extern "C" { typedef struct _GstGSMDec GstGSMDec; typedef struct _GstGSMDecClass GstGSMDecClass; -struct _GstGSMDec { +struct _GstGSMDec +{ GstElement element; /* pads */ - GstPad *sinkpad,*srcpad; + GstPad *sinkpad, *srcpad; gsm state; gsm_byte buffer[33]; gint bufsize; + GstClockTime next_ts; + gint64 next_of; }; -struct _GstGSMDecClass { +struct _GstGSMDecClass +{ GstElementClass parent_class; }; -GType gst_gsmdec_get_type(void); - - -#ifdef __cplusplus -} -#endif /* __cplusplus */ +GType gst_gsmdec_get_type (void); +G_END_DECLS #endif /* __GST_GSMDEC_H__ */ -- cgit v1.2.1