[farsight2/master] Dont use a variable name as a macro argument...
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:28 PST 2008
---
gst-libs/gst/farsight/fs-plugin.h | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-plugin.h b/gst-libs/gst/farsight/fs-plugin.h
index 8b6a831..d9abd2f 100644
--- a/gst-libs/gst/farsight/fs-plugin.h
+++ b/gst-libs/gst/farsight/fs-plugin.h
@@ -100,12 +100,11 @@ GObject *fs_plugin_create_valist (const gchar *name,
* in any farsight plugin.
*/
-#define FS_INIT_PLUGIN(type,unload) \
- G_MODULE_EXPORT GType fs_init_plugin(FsPlugin *plugin) { \
- plugin->name = name; \
- plugin->type = type; \
- plugin->unload = unload; \
- return type; \
+#define FS_INIT_PLUGIN(intype, inunload) \
+ G_MODULE_EXPORT GType fs_init_plugin (FsPlugin *plugin) { \
+ plugin->type = (intype); \
+ plugin->unload = (inunload); \
+ return intype; \
}
--
1.5.6.5
More information about the farsight-commits
mailing list