gst/rtp/: Add missing rate fields to caps. Fixes #441118.
authorTommi Myöhänen <ext-tommi.myohanen@nokia.com>
Mon, 11 Jun 2007 10:21:13 +0000 (10:21 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 11 Jun 2007 10:21:13 +0000 (10:21 +0000)
Original commit message from CVS:
Patch by: Tommi Myöhänen  <ext-tommi dot myohanen at nokia dot com>
* 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
gst/rtp/gstrtppcmadepay.c
gst/rtp/gstrtppcmudepay.c

index 073eb3e..a736215 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-06-11  Wim Taymans  <wim@fluendo.com>
+
+       Patch by: Tommi Myöhänen  <ext-tommi dot myohanen at nokia dot com>
+
+       * 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  <sebastien@moutte.net>
 
        * win32/vs6/gst_plugins_good.dsw:
index f41f7f1..e20efe2 100644 (file)
@@ -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,
index 4d467a1..b472e89 100644 (file)
@@ -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,