tracers: Fix issue in the BC layer added in refactor to simplify params handling

Issue added in refactor done in commit 5e18499372, which includes a
logic to not break the backward compatibility. Issue found with Rust
pcap-writer tracer, fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/644

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8248>
This commit is contained in:
Ruben Gonzalez 2025-01-06 20:29:00 +01:00
parent e000a1ec1f
commit 47c29127b6

View file

@ -204,7 +204,7 @@ gst_tracer_utils_create_tracer (GstTracerFactory * factory, const gchar * name,
names[0] = (const gchar *) "params";
values = g_new0 (GValue, 1);
g_value_init (&values[0], G_TYPE_STRING);
g_value_set_string (&values[0], name);
g_value_set_string (&values[0], params);
}
GST_INFO_OBJECT (factory, "creating tracer: type-id=%u",
(guint) factory->type);