summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-plugin/src/gstplugin.c9
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