gst-libs/gst/audio/gstringbuffer.c: Set depth and width for alaw/mulaw (fixes #326601).

Original commit message from CVS:
Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
* gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_parse_caps):
Set depth and width for alaw/mulaw (fixes #326601).
This commit is contained in:
Tim-Philipp Müller 2006-01-11 15:11:20 +00:00
parent cd28c9672b
commit b867510721
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-01-11 Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_parse_caps):
Set depth and width for alaw/mulaw (fixes #326601).
2006-01-11 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/icles/Makefile.am:

View file

@ -302,9 +302,13 @@ gst_ring_buffer_parse_caps (GstRingBufferSpec * spec, GstCaps * caps)
} else if (!strncmp (mimetype, "audio/x-alaw", 12)) {
spec->type = GST_BUFTYPE_A_LAW;
spec->format = GST_A_LAW;
spec->width = 8;
spec->depth = 8;
} else if (!strncmp (mimetype, "audio/x-mulaw", 13)) {
spec->type = GST_BUFTYPE_MU_LAW;
spec->format = GST_MU_LAW;
spec->width = 8;
spec->depth = 8;
} else {
goto parse_error;
}