gstreamer: prefix debug dot node names to prevent splitting
authorwbartel <wilhelm.bartel@streamonkey.de>
Wed, 27 Nov 2024 10:19:02 +0000 (11:19 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 28 Nov 2024 19:43:16 +0000 (19:43 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7998>

subprojects/gstreamer/gst/gstdebugutils.c

index b646eef6d0c15b9425e2c538924cb7adad8daed8..482b357b7638286866c6c11d49378d73fe35cedb 100644 (file)
@@ -82,7 +82,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 "_", '_');
 }