From b686729c3910e115612e728b924ac5da855340a9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 19 Sep 2005 16:26:30 +0000 Subject: gst/wavparse/gstwavparse.*: Fix wavparse some more. Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_reset), (gst_wavparse_init), (gst_wavparse_parse_file_header), (gst_wavparse_stream_init), (gst_wavparse_handle_seek), (gst_wavparse_stream_headers), (gst_wavparse_stream_data), (gst_wavparse_loop), (gst_wavparse_pad_convert), (gst_wavparse_pad_query), (gst_wavparse_srcpad_event), (gst_wavparse_change_state): * gst/wavparse/gstwavparse.h: Fix wavparse some more. --- gst/wavparse/gstwavparse.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'gst/wavparse/gstwavparse.h') diff --git a/gst/wavparse/gstwavparse.h b/gst/wavparse/gstwavparse.h index fbe9af8e..b56f61ae 100644 --- a/gst/wavparse/gstwavparse.h +++ b/gst/wavparse/gstwavparse.h @@ -26,10 +26,7 @@ #include "gst/riff/riff-ids.h" #include "gst/riff/riff-read.h" -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +G_BEGIN_DECLS #define GST_TYPE_WAVPARSE \ (gst_wavparse_get_type()) @@ -72,11 +69,19 @@ struct _GstWavParse { guint16 width; guint32 bps; + guint bytes_per_sample; + guint64 dataleft, datasize, datastart; gboolean seek_pending; GstEvent *seek_event; - guint64 seek_offset; + + /* configured segment, start/stop expressed in + * bytes */ + gdouble segment_rate; + GstSeekFlags segment_flags; + gint64 segment_start; + gint64 segment_stop; }; struct _GstWavParseClass { @@ -85,9 +90,6 @@ struct _GstWavParseClass { GType gst_wavparse_get_type(void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - +G_END_DECLS #endif /* __GST_WAVPARSE_H__ */ -- cgit