diff options
author | Iain Holmes <iain@prettypeople.org> | 2004-07-25 15:05:06 +0000 |
---|---|---|
committer | Iain Holmes <iain@prettypeople.org> | 2004-07-25 15:05:06 +0000 |
commit | ec250d49d02e6d83cc037de11d8cbccaa83fa827 (patch) | |
tree | 0c5df89af61313559b9f5eb810c80b9e730f89d3 /gst | |
parent | 070d0301a9c7f8136af8043fc82b8ae81c3b8d74 (diff) |
Set the explicit caps on the pad when the file is parsed as explicit caps get wiped during state changes. fixes bug #...
Original commit message from CVS:
Set the explicit caps on the pad when the file is parsed as explicit caps get wiped during state changes. fixes bug #148043
Diffstat (limited to 'gst')
-rw-r--r-- | gst/wavparse/gstwavparse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 86db360f..fb61932c 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -542,13 +542,14 @@ gst_wavparse_fmt (GstWavParse * wav) wav->depth = header->size; wav->bps = header->av_bps; + gst_element_add_pad (GST_ELEMENT (wav), wav->srcpad); + caps = gst_riff_create_audio_caps (header->format, NULL, header, NULL); if (caps) { gst_pad_set_explicit_caps (wav->srcpad, caps); gst_caps_free (caps); } - gst_element_add_pad (GST_ELEMENT (wav), wav->srcpad); GST_DEBUG ("frequency %d, channels %d", wav->rate, wav->channels); |