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.
This commit is contained in:
Tim-Philipp Müller 2006-05-28 17:33:13 +00:00
parent a2dbc8ad43
commit 8f1c9746ea
4 changed files with 11 additions and 17 deletions

View file

@ -1,3 +1,10 @@
2006-05-28 Tim-Philipp Müller <tim at centricular dot net>
* 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.
2006-05-28 Tim-Philipp Müller <tim at centricular dot net> 2006-05-28 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Sebastian Dröge <slomo at ubuntu dot com> Patch by: Sebastian Dröge <slomo at ubuntu dot com>

View file

@ -180,15 +180,7 @@ gst_alpha_color_transform_caps (GstBaseTransform * btrans,
gst_caps_unref (local_caps); gst_caps_unref (local_caps);
gst_caps_do_simplify (result); gst_caps_do_simplify (result);
{ GST_LOG ("transformed %" GST_PTR_FORMAT " to %" GST_PTR_FORMAT, caps, result);
gchar *caps_str, *result_str;
caps_str = gst_caps_to_string (caps);
result_str = gst_caps_to_string (result);
GST_LOG ("transformed %s to %s", caps_str, result_str);
g_free (caps_str);
g_free (result_str);
}
return result; return result;
} }

View file

@ -237,7 +237,6 @@ gst_negotiation_update_caps (GstNegotiation * negotiation)
GstCaps *srccaps; GstCaps *srccaps;
GstCaps *sinkcaps; GstCaps *sinkcaps;
GstCaps *icaps; GstCaps *icaps;
gchar *icapsstr;
srccaps = gst_pad_get_allowed_caps (negotiation->srcpad); srccaps = gst_pad_get_allowed_caps (negotiation->srcpad);
sinkcaps = gst_pad_get_allowed_caps (negotiation->sinkpad); sinkcaps = gst_pad_get_allowed_caps (negotiation->sinkpad);
@ -248,9 +247,7 @@ gst_negotiation_update_caps (GstNegotiation * negotiation)
gst_caps_replace (&negotiation->caps, icaps); gst_caps_replace (&negotiation->caps, icaps);
g_object_notify (G_OBJECT (negotiation), "allowed-caps"); g_object_notify (G_OBJECT (negotiation), "allowed-caps");
icapsstr = gst_caps_to_string (icaps); GST_DEBUG ("notify %" GST_PTR_FORMAT, icaps);
GST_DEBUG ("notify %s", icapsstr);
g_free (icapsstr);
} }
static void static void

View file

@ -148,7 +148,6 @@ gst_rtp_ilbc_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
GstRTPiLBCDepay *rtpilbcdepay = GST_RTP_ILBC_DEPAY (depayload); GstRTPiLBCDepay *rtpilbcdepay = GST_RTP_ILBC_DEPAY (depayload);
GstCaps *srccaps; GstCaps *srccaps;
GstStructure *structure; GstStructure *structure;
gchar *str;
gboolean ret; gboolean ret;
srccaps = gst_caps_copy (gst_static_pad_template_get_caps 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); structure = gst_caps_get_structure (srccaps, 0);
gst_structure_set (structure, "mode", G_TYPE_INT, gst_structure_set (structure, "mode", G_TYPE_INT,
rtpilbcdepay->mode == GST_ILBC_MODE_30 ? 30 : 20, NULL); rtpilbcdepay->mode == GST_ILBC_MODE_30 ? 30 : 20, NULL);
ret = gst_pad_set_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload), srccaps); ret = gst_pad_set_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload), srccaps);
str = gst_caps_to_string (srccaps) GST_DEBUG ("set caps on source: %" GST_PTR_FORMAT " (ret=%d)", srccaps, ret);
GST_DEBUG ("caps set on source are %s", str);
g_free (str);
gst_caps_unref (srccaps); gst_caps_unref (srccaps);
return ret; return ret;