From 5b1cd740115adebf9716053548c26558afff9981 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 21 Mar 2007 11:03:23 +0000 Subject: [PATCH] gst/playback/gstplaybin.c: Use GST_PTR_FORMAT to log caps. Original commit message from CVS: * gst/playback/gstplaybin.c: (add_sink): Use GST_PTR_FORMAT to log caps. --- ChangeLog | 5 +++++ gst/playback/gstplaybin.c | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a87948f..2d7c854 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-03-21 Tim-Philipp Müller + * gst/playback/gstplaybin.c: (add_sink): + Use GST_PTR_FORMAT to log caps. + +2007-03-21 Tim-Philipp Müller + Patch by: Young-Ho Cha * gst/subparse/samiparse.c: (handle_start_font): diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index e7a7da9..a3b9180 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -1486,16 +1486,12 @@ link_failed: } subtitle_failed: { - gchar *capsstr; GstCaps *caps; /* could not link this stream */ caps = gst_pad_get_caps (subtitle_pad); - capsstr = gst_caps_to_string (caps); - GST_DEBUG_OBJECT (play_bin, - "subtitle link failed when adding sink, caps %s, reason %d", capsstr, - linkres); - g_free (capsstr); + GST_WARNING_OBJECT (play_bin, "subtitle link failed when adding sink, " + "caps = %" GST_PTR_FORMAT ", reason %d", caps, linkres); gst_caps_unref (caps); /* not fatal */ -- 2.7.4