diff --git a/ChangeLog b/ChangeLog index 379eb05b5f..27e8591010 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-11 Tommi Myöhänen + + Reviewed by: Tim-Philipp Müller + + * 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 * tests/icles/Makefile.am: diff --git a/gst-libs/gst/audio/gstringbuffer.c b/gst-libs/gst/audio/gstringbuffer.c index 6dd79802a6..46c4647a80 100644 --- a/gst-libs/gst/audio/gstringbuffer.c +++ b/gst-libs/gst/audio/gstringbuffer.c @@ -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; }