From 123ecb57c1ed9acaac31f23ed651914da80de4e9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 14 Oct 2013 11:20:03 -0300 Subject: [PATCH] media-info: Do not use GST_PTR_FORMAT with g_print Fix compilation --- validate/gst/validate/gst-validate-media-info.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-media-info.c b/validate/gst/validate/gst-validate-media-info.c index ef62e22..0ac22db 100644 --- a/validate/gst/validate/gst-validate-media-info.c +++ b/validate/gst/validate/gst-validate-media-info.c @@ -1112,8 +1112,12 @@ gst_validate_media_info_compare (GstValidateMediaInfo * expected, if (expected->stream_info && !gst_caps_is_equal_fixed (expected->stream_info->caps, extracted->stream_info->caps)) { - g_print ("Media caps changed: '%" GST_PTR_FORMAT "' -> '%" GST_PTR_FORMAT - "'\n", expected->stream_info->caps, extracted->stream_info->caps); + gchar *caps1 = gst_caps_to_string (expected->stream_info->caps); + gchar *caps2 = gst_caps_to_string (extracted->stream_info->caps); + + g_print ("Media caps changed: '%s' -> '%s'\n", caps1, caps2); + g_free (caps1); + g_free (caps2); ret = FALSE; } return ret; -- 2.7.4