summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-06-28 19:26:29 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-06-28 19:27:09 +0300
commitdea792292e17ddf655dc41366a712d748a7ae4b6 (patch)
treedf8684eec8572ce544b3566c1f2c070789f381f8 /sys
parent93191c92f1894b1bead6e8815dc928cf8282786c (diff)
downloadgstreamer-plugins-bad-dea792292e17ddf655dc41366a712d748a7ae4b6.tar.gz
d3dvideosink: Replace some more gst_caps_to_string() with GST_PTR_FORMAT
https://bugzilla.gnome.org/show_bug.cgi?id=768146
Diffstat (limited to 'sys')
-rw-r--r--sys/d3dvideosink/d3dhelpers.c4
-rw-r--r--sys/d3dvideosink/d3dvideosink.c9
2 files changed, 3 insertions, 10 deletions
diff --git a/sys/d3dvideosink/d3dhelpers.c b/sys/d3dvideosink/d3dhelpers.c
index 5091c0638..4ed089d9f 100644
--- a/sys/d3dvideosink/d3dhelpers.c
+++ b/sys/d3dvideosink/d3dhelpers.c
@@ -810,9 +810,7 @@ d3d_supported_caps (GstD3DVideoSink * sink)
#ifndef GST_DISABLE_GST_DEBUG
{
- gchar *tmp = gst_caps_to_string (caps);
- GST_DEBUG_OBJECT (sink, "Supported caps: %s", tmp);
- g_free (tmp);
+ GST_DEBUG_OBJECT (sink, "Supported caps: %" GST_PTR_FORMAT, caps);
}
#endif
diff --git a/sys/d3dvideosink/d3dvideosink.c b/sys/d3dvideosink/d3dvideosink.c
index 82120c69f..88e201edc 100644
--- a/sys/d3dvideosink/d3dvideosink.c
+++ b/sys/d3dvideosink/d3dvideosink.c
@@ -276,7 +276,6 @@ gst_d3dvideosink_set_caps (GstBaseSink * bsink, GstCaps * caps)
gint video_par_n, video_par_d; /* video's PAR */
gint display_par_n = 1, display_par_d = 1; /* display's PAR */
guint num, den;
- gchar *tmp = NULL;
GstBufferPool *newpool, *oldpool;
GstBufferPool *newfbpool, *oldfbpool;
GstStructure *config;
@@ -354,9 +353,7 @@ gst_d3dvideosink_set_caps (GstBaseSink * bsink, GstCaps * caps)
sink->width = video_width;
sink->height = video_height;
- GST_DEBUG_OBJECT (bsink, "Selected caps: %s", (tmp =
- gst_caps_to_string (caps)));
- g_free (tmp);
+ GST_DEBUG_OBJECT (bsink, "Selected caps: %" GST_PTR_FORMAT, caps);
if (!d3d_set_render_format (sink))
goto incompatible_caps;
@@ -410,10 +407,8 @@ incompatible_caps:
}
invalid_format:
{
- gchar *caps_txt = gst_caps_to_string (caps);
GST_DEBUG_OBJECT (sink,
- "Could not locate image format from caps %s", caps_txt);
- g_free (caps_txt);
+ "Could not locate image format from caps %" GST_PTR_FORMAT, caps);
return FALSE;
}
no_disp_ratio: