cdio: work around cdio headers re-defining VERSION and PACKAGE_VERSION

Thanks guys. Fixes plugin version in gst-inspect-1.0 and docs
introspection/updating for this plugin.
This commit is contained in:
Tim-Philipp Müller 2012-09-17 10:53:12 +01:00
parent 45815d7ec4
commit 59c54c7a66

View file

@ -22,6 +22,17 @@
#include "config.h"
#endif
#include <gst/gst.h>
static gboolean plugin_init (GstPlugin * plugin);
/* cdio headers redefine VERSION etc., so do this here before including them */
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
cdio,
"Read audio from audio CDs",
plugin_init, VERSION, "GPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
#include "gstcdio.h"
#include "gstcdiocddasrc.h"
@ -136,10 +147,3 @@ plugin_init (GstPlugin * plugin)
return TRUE;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
cdio,
"Read audio from audio CDs",
plugin_init, VERSION, "GPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)