[gstreamer-bugs] [Bug 431282] broken depayloaders

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Apr 20 00:06:22 PDT 2007

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:

  GStreamer | gst-plugins-good | Ver: HEAD CVS

------- Comment #2 from Laurent Glayal  2007-04-20 07:06 UTC -------
I modified rtppcmadepay to add basic trace ::
static void
gst_rtp_pcma_depay_init (GstRtpPcmaDepay * rtppcmadepay,
    GstRtpPcmaDepayClass * klass)
  GstBaseRTPDepayload *depayload;

  depayload = GST_BASE_RTP_DEPAYLOAD (rtppcmadepay);

  depayload->clock_rate = 8000;
  gst_pad_use_fixed_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload));

        printf("----------------INIT CALLED %p %d ----------\n",


static gboolean
gst_rtp_pcma_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
  GstCaps *srccaps;
  gboolean ret;

        printf("----------------DEPAY CAPS SRC CALLED %p %d----------\n",
depayload, depayload->clock_rate);

  srccaps = gst_caps_new_simple ("audio/x-alaw",
      "channels", G_TYPE_INT, 1, "rate", G_TYPE_INT, 8000, NULL);

  ret = gst_pad_set_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload), srccaps);

  gst_caps_unref (srccaps);

  return ret;

And here is the result 

----------------INIT CALLED 0x814b000 8000 ----------
----------------DEPAY CAPS SRC CALLED 0x814b000 0----------

Any idea ?

See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=431282.

More information about the Gstreamer-bugs mailing list