From 94253529c430a1f727114c227abac8cf27b94435 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 19 Dec 2024 13:57:07 +0100 Subject: [PATCH] glmixerbin: derivate the mixer name from the bin name Make it easier to identify a specific instance in logs in complex pipelines. Part-of: --- subprojects/gst-plugins-base/ext/gl/gstglmixerbin.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/ext/gl/gstglmixerbin.c b/subprojects/gst-plugins-base/ext/gl/gstglmixerbin.c index 14e3c29b86..9fc5c88441 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglmixerbin.c +++ b/subprojects/gst-plugins-base/ext/gl/gstglmixerbin.c @@ -443,10 +443,15 @@ static gboolean _connect_mixer_element (GstGLMixerBin * self) { gboolean res = TRUE; + gchar *tmp, *name; g_return_val_if_fail (self->priv->input_chains == NULL, FALSE); - gst_object_set_name (GST_OBJECT (self->mixer), "mixer"); + tmp = gst_object_get_name (GST_OBJECT (self)); + name = g_strdup_printf ("%s-mixer", tmp); + g_free (tmp); + gst_object_set_name (GST_OBJECT (self->mixer), name); + g_free (name); res &= gst_bin_add (GST_BIN (self), self->mixer); res &= gst_element_link_pads (self->mixer, "src", self->out_convert, "sink");