Commit d6a2d1ab authored by Edward Hervey's avatar Edward Hervey

Ported wavparse to 0.9 . Playing, seeking and state changes work.

Original commit message from CVS:
* configure.ac:
* gst/wavparse/gstwavparse.c:
* gst/wavparse/gstwavparse.h:
* gst/wavparse/Makefile.am:
Ported wavparse to 0.9 . Playing, seeking and state changes work.
Could need more loving on the headers though.
parent 96117807
2005-07-20 Edward Hervey <edward@fluendo.com>
* configure.ac:
* gst/wavparse/gstwavparse.c:
* gst/wavparse/gstwavparse.h:
* gst/wavparse/Makefile.am:
Ported wavparse to 0.9 . Playing, seeking and state changes work.
Could need more loving on the headers though.
2005-07-20 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* configure.ac:
......
......@@ -315,6 +315,7 @@ GST_PLUGINS_ALL="\
smpte \
udp \
videobox \
wavparse \
"
dnl see if we can build C++ plug-ins
......@@ -597,6 +598,7 @@ gst/smpte/Makefile
gst/udp/Makefile
gst/videobox/Makefile
gst/videofilter/Makefile
gst/wavparse/Makefile
gst-libs/Makefile
gst-libs/gst/Makefile
sys/Makefile
......
......@@ -2,8 +2,11 @@
plugin_LTLIBRARIES = libgstwavparse.la
libgstwavparse_la_SOURCES = gstwavparse.c
libgstwavparse_la_CFLAGS = $(GST_CFLAGS)
libgstwavparse_la_LIBADD =
libgstwavparse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstwavparse_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
-I$(top_srcdir)/gst-libs
libgstwavparse_la_LIBADD = -lgstriff-0.9
libgstwavparse_la_LDFLAGS = \
$(GST_PLUGIN_LDFLAGS) \
$(GST_PLUGINS_BASE_LIBS)
noinst_HEADERS = gstwavparse.h
This diff is collapsed.
......@@ -44,8 +44,7 @@ extern "C" {
typedef enum {
GST_WAVPARSE_START,
GST_WAVPARSE_FMT,
GST_WAVPARSE_OTHER,
GST_WAVPARSE_HEADER,
GST_WAVPARSE_DATA,
} GstWavParseState;
......@@ -53,13 +52,14 @@ typedef struct _GstWavParse GstWavParse;
typedef struct _GstWavParseClass GstWavParseClass;
struct _GstWavParse {
GstRiffRead parent;
GstElement parent;
/* pads */
GstPad *sinkpad,*srcpad;
/* WAVE decoding state */
GstWavParseState state;
guint64 offset;
/* format of audio, see defines below */
gint format;
......@@ -73,14 +73,14 @@ struct _GstWavParse {
guint32 bps;
guint64 dataleft, datasize, datastart;
int byteoffset;
gboolean seek_pending;
GstEvent *seek_event;
guint64 seek_offset;
};
struct _GstWavParseClass {
GstRiffReadClass parent_class;
GstElementClass parent_class;
};
GType gst_wavparse_get_type(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment