gstreamer: prefix debug dot node names to prevent splitting

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7979>
This commit is contained in:
wbartel 2024-11-27 11:19:02 +01:00 committed by GStreamer Marge Bot
parent 4586260191
commit de41680f78

View file

@ -83,7 +83,8 @@ static const gchar spaces[] = {
static gchar *
debug_dump_make_object_name (GstObject * obj)
{
return g_strcanon (g_strdup_printf ("%s_%p", GST_OBJECT_NAME (obj), obj),
/* must start with a letter to prevent dot from splitting names starting with [0-9] */
return g_strcanon (g_strdup_printf ("node_%s_%p", GST_OBJECT_NAME (obj), obj),
G_CSET_A_2_Z G_CSET_a_2_z G_CSET_DIGITS "_", '_');
}