gst-libs/gst/audio/gstringbuffer.c: Set depth and width for alaw/mulaw (fixes #326601).
authorTim-Philipp Müller <tim@centricular.net>
Wed, 11 Jan 2006 15:11:20 +0000 (15:11 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 11 Jan 2006 15:11:20 +0000 (15:11 +0000)
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).

ChangeLog
gst-libs/gst/audio/gstringbuffer.c

index 379eb05..27e8591 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 6dd7980..46c4647 100644 (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;
   }