diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-30 01:17:34 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-30 01:17:34 +0100 |
commit | 91d2790c6b36dca5498ec5ee20d6b418a3bedc13 (patch) | |
tree | 719922e18e9f060d7f1f9f66f74a62068e79a2f8 /gst-plugin | |
parent | f428277ea49f6dd4dcceb3724fac9dcbfe952499 (diff) |
gstplugin.c: define PACKAGE if it hasn't been defined yet
Since it's secretly required by GST_PLUGIN_DEFINE and we don't want
people to trip over this if they're trying to compile their code
without autotools.
Diffstat (limited to 'gst-plugin')
-rw-r--r-- | gst-plugin/src/gstplugin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gst-plugin/src/gstplugin.c b/gst-plugin/src/gstplugin.c index 443890a..464be87 100644 --- a/gst-plugin/src/gstplugin.c +++ b/gst-plugin/src/gstplugin.c @@ -254,6 +254,15 @@ plugin_init (GstPlugin * plugin) GST_TYPE_PLUGIN_TEMPLATE); } +/* PACKAGE: this is usually set by autotools depending on some _INIT macro + * in configure.ac and then written into and defined in config.h, but we can + * just set it ourselves here in case someone doesn't use autotools to + * compile this code. GST_PLUGIN_DEFINE needs PACKAGE to be defined. + */ +#ifndef PACKAGE +#define PACKAGE "myfirstplugin" +#endif + /* gstreamer looks for this structure to register plugins * * exchange the string 'Template plugin' with your plugin description |