summaryrefslogtreecommitdiff
path: root/ext/gsm/gstgsmdec.h
diff options
context:
space:
mode:
authorMaciej Katafiasz <mathrick@mathrick.org>2005-01-24 21:57:15 +0000
committerMaciej Katafiasz <mathrick@mathrick.org>2005-01-24 21:57:15 +0000
commit9d608aed4da8cf0bfc96f348c5d70f64e4b51168 (patch)
tree57d292a5e31248f2f5553e2f40942849e1782de6 /ext/gsm/gstgsmdec.h
parent5c88ccad34797478f5e7fc9ed4f17648a2918732 (diff)
downloadgstreamer-plugins-bad-9d608aed4da8cf0bfc96f348c5d70f64e4b51168.tar.gz
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
Diffstat (limited to 'ext/gsm/gstgsmdec.h')
-rw-r--r--ext/gsm/gstgsmdec.h25
1 files changed, 10 insertions, 15 deletions
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 <gst/gst.h>
#ifdef GSM_HEADER_IN_SUBDIR
@@ -30,10 +28,7 @@
#include <gsm.h>
#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__ */