mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
gldebug: use gst_info_vasprintf in insert_debug_marker()
Allows expansion of GST_PTR_FORMAT and GST_SEGMENT_FORMAT arguments.
This commit is contained in:
parent
a15305ea02
commit
b804aa2399
1 changed files with 7 additions and 1 deletions
|
@ -204,9 +204,15 @@ gst_gl_insert_debug_marker (GstGLContext * context, const gchar * format, ...)
|
|||
va_list args;
|
||||
|
||||
va_start (args, format);
|
||||
len = g_vasprintf (&string, format, args);
|
||||
len = gst_info_vasprintf (&string, format, args);
|
||||
va_end (args);
|
||||
|
||||
/* gst_info_vasprintf() returns -1 on error, the various debug marker
|
||||
* functions take len=-1 to mean null terminated */
|
||||
if (len < 0 || string == NULL)
|
||||
/* no debug output */
|
||||
return;
|
||||
|
||||
if (gl->DebugMessageInsert)
|
||||
gl->DebugMessageInsert (GL_DEBUG_SOURCE_THIRD_PARTY, GL_DEBUG_TYPE_MARKER,
|
||||
0, GL_DEBUG_SEVERITY_LOW, (gsize) len, string);
|
||||
|
|
Loading…
Reference in a new issue