summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpilbcdepay.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-05-28 17:33:13 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-05-28 17:33:13 +0000
commit8f1c9746eae406efa1619a890bfc35d96fb485e4 (patch)
treedd24a2bd85f2479b79262269f005a000a40d84d3 /gst/rtp/gstrtpilbcdepay.c
parenta2dbc8ad4322dcd67406509215eef6fc5c01c17f (diff)
gst/: GST_PTR_FORMAT should be used to print caps in debug statements.
Original commit message from CVS: * gst/alpha/gstalphacolor.c: (gst_alpha_color_transform_caps): * gst/debug/negotiation.c: (gst_negotiation_update_caps): * gst/rtp/gstrtpilbcdepay.c: (gst_rtp_ilbc_depay_setcaps): GST_PTR_FORMAT should be used to print caps in debug statements.
Diffstat (limited to 'gst/rtp/gstrtpilbcdepay.c')
-rw-r--r--gst/rtp/gstrtpilbcdepay.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c
index 11002b3a..f2ff6003 100644
--- a/gst/rtp/gstrtpilbcdepay.c
+++ b/gst/rtp/gstrtpilbcdepay.c
@@ -148,7 +148,6 @@ gst_rtp_ilbc_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
GstRTPiLBCDepay *rtpilbcdepay = GST_RTP_ILBC_DEPAY (depayload);
GstCaps *srccaps;
GstStructure *structure;
- gchar *str;
gboolean ret;
srccaps = gst_caps_copy (gst_static_pad_template_get_caps
@@ -156,11 +155,10 @@ gst_rtp_ilbc_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
structure = gst_caps_get_structure (srccaps, 0);
gst_structure_set (structure, "mode", G_TYPE_INT,
rtpilbcdepay->mode == GST_ILBC_MODE_30 ? 30 : 20, NULL);
+
ret = gst_pad_set_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload), srccaps);
- str = gst_caps_to_string (srccaps)
- GST_DEBUG ("caps set on source are %s", str);
- g_free (str);
+ GST_DEBUG ("set caps on source: %" GST_PTR_FORMAT " (ret=%d)", srccaps, ret);
gst_caps_unref (srccaps);
return ret;