gst/playback/gstplaybin.c: Use GST_PTR_FORMAT to log caps.
authorTim-Philipp Müller <tim@centricular.net>
Wed, 21 Mar 2007 11:03:23 +0000 (11:03 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 21 Mar 2007 11:03:23 +0000 (11:03 +0000)
Original commit message from CVS:
* gst/playback/gstplaybin.c: (add_sink):
Use GST_PTR_FORMAT to log caps.

ChangeLog
gst/playback/gstplaybin.c

index a87948f..2d7c854 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-03-21  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * gst/playback/gstplaybin.c: (add_sink):
+         Use GST_PTR_FORMAT to log caps. 
+
+2007-03-21  Tim-Philipp Müller  <tim at centricular dot net>
+
        Patch by: Young-Ho Cha <ganadist at chollian net>
 
        * gst/subparse/samiparse.c: (handle_start_font):
index e7a7da9..a3b9180 100644 (file)
@@ -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 */