summaryrefslogtreecommitdiff
path: root/gst/gstplugin.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-10-10 10:53:39 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-10-10 10:53:39 +0000
commit46283255e4dbe277c58d167b01f324ca585a17d7 (patch)
tree860bb29009409987524ba86abe033a35d86d4748 /gst/gstplugin.h
parenta639f7abfccd82fbde9313150950b8f13daa0bfb (diff)
downloadgstreamer-46283255e4dbe277c58d167b01f324ca585a17d7.tar.gz
gst/gstplugin.h: Cast description string constants in GST_PLUGIN_DEFINE macros to a (gchar*) to make C++ code using t...
Original commit message from CVS: * gst/gstplugin.h: Cast description string constants in GST_PLUGIN_DEFINE macros to a (gchar*) to make C++ code using these macros compile without warning with g++-4.2 (see #462737). Even if slightly ugly, this seems preferable to putting the description strings into the GLib quark table or making the structure member a const gchar * and doing casts in core code that allocs and frees these strings, or requiring a cast in the C++ code.
Diffstat (limited to 'gst/gstplugin.h')
-rw-r--r--gst/gstplugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstplugin.h b/gst/gstplugin.h
index cfc28f6f29..93bc9b7ab4 100644
--- a/gst/gstplugin.h
+++ b/gst/gstplugin.h
@@ -187,7 +187,7 @@ GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
major, \
minor, \
name, \
- description, \
+ (gchar *) description, \
init, \
version, \
license, \
@@ -221,7 +221,7 @@ _gst_plugin_static_init__ ##init (void) \
major, \
minor, \
name, \
- description, \
+ (gchar *) description, \
init, \
version, \
license, \