Commit 91d2790c authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

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.
parent f428277e
......@@ -254,6 +254,15 @@ plugin_init (GstPlugin * plugin)
/* PACKAGE: this is usually set by autotools depending on some _INIT macro
* in 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"
/* gstreamer looks for this structure to register plugins
* exchange the string 'Template plugin' with your plugin description
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment