mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
d3dvideosink: Replace some more gst_caps_to_string() with GST_PTR_FORMAT
https://bugzilla.gnome.org/show_bug.cgi?id=768146
This commit is contained in:
parent
93191c92f1
commit
dea792292e
2 changed files with 3 additions and 10 deletions
|
@ -810,9 +810,7 @@ d3d_supported_caps (GstD3DVideoSink * sink)
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
{
|
{
|
||||||
gchar *tmp = gst_caps_to_string (caps);
|
GST_DEBUG_OBJECT (sink, "Supported caps: %" GST_PTR_FORMAT, caps);
|
||||||
GST_DEBUG_OBJECT (sink, "Supported caps: %s", tmp);
|
|
||||||
g_free (tmp);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,6 @@ gst_d3dvideosink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
gint video_par_n, video_par_d; /* video's PAR */
|
gint video_par_n, video_par_d; /* video's PAR */
|
||||||
gint display_par_n = 1, display_par_d = 1; /* display's PAR */
|
gint display_par_n = 1, display_par_d = 1; /* display's PAR */
|
||||||
guint num, den;
|
guint num, den;
|
||||||
gchar *tmp = NULL;
|
|
||||||
GstBufferPool *newpool, *oldpool;
|
GstBufferPool *newpool, *oldpool;
|
||||||
GstBufferPool *newfbpool, *oldfbpool;
|
GstBufferPool *newfbpool, *oldfbpool;
|
||||||
GstStructure *config;
|
GstStructure *config;
|
||||||
|
@ -354,9 +353,7 @@ gst_d3dvideosink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
sink->width = video_width;
|
sink->width = video_width;
|
||||||
sink->height = video_height;
|
sink->height = video_height;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (bsink, "Selected caps: %s", (tmp =
|
GST_DEBUG_OBJECT (bsink, "Selected caps: %" GST_PTR_FORMAT, caps);
|
||||||
gst_caps_to_string (caps)));
|
|
||||||
g_free (tmp);
|
|
||||||
|
|
||||||
if (!d3d_set_render_format (sink))
|
if (!d3d_set_render_format (sink))
|
||||||
goto incompatible_caps;
|
goto incompatible_caps;
|
||||||
|
@ -410,10 +407,8 @@ incompatible_caps:
|
||||||
}
|
}
|
||||||
invalid_format:
|
invalid_format:
|
||||||
{
|
{
|
||||||
gchar *caps_txt = gst_caps_to_string (caps);
|
|
||||||
GST_DEBUG_OBJECT (sink,
|
GST_DEBUG_OBJECT (sink,
|
||||||
"Could not locate image format from caps %s", caps_txt);
|
"Could not locate image format from caps %" GST_PTR_FORMAT, caps);
|
||||||
g_free (caps_txt);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
no_disp_ratio:
|
no_disp_ratio:
|
||||||
|
|
Loading…
Reference in a new issue