From f43b756f39fe8fbe90e56b699a80ca3d599a6b1e Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 12 Apr 2013 14:48:29 +0200 Subject: [PATCH] plugin: fix name expansion for GST_PLUGIN_DEFINE macro Make GST_PLUGIN_DEFINE use G_STRINGIFY() to convert the name argument into a meaningful string. The advantage of this is that `name' can be expanded from other macros defined in the plug-in element. Signed-off-by: Gwenole Beauchesne https://bugzilla.gnome.org/show_bug.cgi?id=697872 --- gst/gstplugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstplugin.h b/gst/gstplugin.h index d494915..f9d3b6d 100644 --- a/gst/gstplugin.h +++ b/gst/gstplugin.h @@ -218,7 +218,7 @@ G_BEGIN_DECLS \ GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \ major, \ minor, \ - #name, \ + G_STRINGIFY(name), \ (gchar *) description, \ init, \ version, \ -- 2.7.4