summaryrefslogtreecommitdiffstats
path: root/ext/gsm/gstgsmdec.h
diff options
context:
space:
mode:
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 0544128b..4de6d9b6 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__ */