+2006-04-29 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers):
+ ... and fix multichannel/WAVFORMATEX support again.
+
2006-04-29 Stefan Kost <ensonic@users.sf.net>
* gst/wavparse/gstwavparse.c: (gst_wavparse_base_init),
if (!(gst_riff_parse_strf_auds (GST_ELEMENT (wav), buf, &header, &extra)))
goto parse_header_error;
- if (extra)
- gst_buffer_unref (extra);
-
if (wav->streaming) {
gst_adapter_flush (wav->adapter, size);
wav->offset += size;
/* Note: gst_riff_create_audio_caps might nedd to fix values in
* the header header depending on the format, so call it first */
caps =
- gst_riff_create_audio_caps (header->format, NULL, header, NULL,
+ gst_riff_create_audio_caps (header->format, NULL, header, extra,
NULL, &codec_name);
+ if (extra)
+ gst_buffer_unref (extra);
+
wav->format = header->format;
wav->rate = header->rate;
wav->channels = header->channels;