mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
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:
parent
45815d7ec4
commit
59c54c7a66
1 changed files with 11 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue