From a3719a4a153525bc32af8a5bbf090b0e5a9f4941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20My=C3=B6h=C3=A4nen?= Date: Mon, 11 Jun 2007 10:21:13 +0000 Subject: [PATCH] gst/rtp/: Add missing rate fields to caps. Fixes #441118. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: Tommi Myöhänen * gst/rtp/gstrtppcmadepay.c: (gst_rtp_pcma_depay_setcaps): * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_setcaps): Add missing rate fields to caps. Fixes #441118. --- ChangeLog | 8 ++++++++ gst/rtp/gstrtppcmadepay.c | 2 +- gst/rtp/gstrtppcmudepay.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 073eb3e7b2..a736215181 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-06-11 Wim Taymans + + Patch by: Tommi Myöhänen + + * gst/rtp/gstrtppcmadepay.c: (gst_rtp_pcma_depay_setcaps): + * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_setcaps): + Add missing rate fields to caps. Fixes #441118. + 2007-06-10 Sebastien Moutte * win32/vs6/gst_plugins_good.dsw: diff --git a/gst/rtp/gstrtppcmadepay.c b/gst/rtp/gstrtppcmadepay.c index f41f7f1d82..e20efe227e 100644 --- a/gst/rtp/gstrtppcmadepay.c +++ b/gst/rtp/gstrtppcmadepay.c @@ -64,7 +64,7 @@ static GstStaticPadTemplate gst_rtp_pcma_depay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("audio/x-alaw, " "channels = (int) 1") + GST_STATIC_CAPS ("audio/x-alaw, channels = (int) 1, rate = (int) 8000") ); static GstBuffer *gst_rtp_pcma_depay_process (GstBaseRTPDepayload * depayload, diff --git a/gst/rtp/gstrtppcmudepay.c b/gst/rtp/gstrtppcmudepay.c index 4d467a1094..b472e89dad 100644 --- a/gst/rtp/gstrtppcmudepay.c +++ b/gst/rtp/gstrtppcmudepay.c @@ -64,7 +64,7 @@ static GstStaticPadTemplate gst_rtp_pcmu_depay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("audio/x-mulaw, " "channels = (int) 1") + GST_STATIC_CAPS ("audio/x-mulaw, channels = (int) 1, rate = (int) 8000") ); static GstBuffer *gst_rtp_pcmu_depay_process (GstBaseRTPDepayload * depayload,