[gstreamer-bugs] [Bug 326601] New: GstRingBuffer crashes with certain caps

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jan 11 06:02:11 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=326601
 GStreamer | gst-plugins-base | Ver: 0.10.0

           Summary: GstRingBuffer crashes with certain caps
           Product: GStreamer
           Version: 0.10.0
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: ext-tommi.myohanen at nokia.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
It is not possible to create a source element (based on audiosink) that has 
following caps:

"audio/x-alaw, "
"rate = (int)8000, "
"channels = (int) 1"

"audio/x-ulaw, "
"rate = (int)8000, "
"channels = (int) 1"

If such element is tried to be made, gstringbuffer.c throws floating point 
exception because there is division by zero situation.


Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Problem can be fixed with following patch:

Index: gstringbuffer.c
===================================================================
--- gstringbuffer.c.orig        2005-12-09 12:47:30.000000000 +0200
+++ gstringbuffer.c     2005-12-12 17:27:19.000000000 +0200
@@ -302,9 +302,13 @@
   } 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;
   }


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list