From 919d3f2f7c2a7da7c597d8f63daf77a26f8b83fc Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Fri, 17 Oct 2003 00:29:44 +0000 Subject: Add a parser for metadata Original commit message from CVS: Add a parser for metadata (demux_metadata): Given the buffer containing the metadata, look through it and get the info out of it. (wav_new_chunk_callback): Change the if statement to a switch statement. Handle GST_RIFF_TAG_LIST by changing what the type of list it is and parsing out metadata if it is "INFO". --- gst/wavparse/gstwavparse.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gst/wavparse/gstwavparse.h') diff --git a/gst/wavparse/gstwavparse.h b/gst/wavparse/gstwavparse.h index dad8e627..5b3e3e15 100644 --- a/gst/wavparse/gstwavparse.h +++ b/gst/wavparse/gstwavparse.h @@ -49,7 +49,7 @@ extern "C" { #define GST_WAVPARSE_CHUNK_DATA 2 /* searching for data */ #define GST_WAVPARSE_DATA 3 /* in data region */ #define GST_WAVPARSE_OTHER 4 /* in unknown region */ - + typedef struct _GstWavParse GstWavParse; typedef struct _GstWavParseClass GstWavParseClass; @@ -83,6 +83,8 @@ struct _GstWavParse { gboolean need_discont; GstBuffer *buf; + + GstCaps *metadata; }; struct _GstWavParseClass { @@ -101,7 +103,8 @@ struct _GstWavParseFormat { guint16 wBlockAlign; guint16 wBitsPerSample; }; - + + /**** from public Microsoft RIFF docs ******/ #define GST_RIFF_WAVE_FORMAT_UNKNOWN (0x0000) #define GST_RIFF_WAVE_FORMAT_PCM (0x0001) -- cgit