mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
plugins: fix description for gst-inspect.
Fix the name of the plug-in element reported to gst-inspect-1.0. i.e. we need an explicit definition for GStreamer >= 1.0 because the GST_PLUGIN_DEFINE incorrectly uses #name for creating the plug-in name, instead of using macro expansion (and let further expansion of macros) through e.g. G_STRINGIFY().
This commit is contained in:
parent
be210a4722
commit
9b981dd244
2 changed files with 15 additions and 15 deletions
|
@ -64,9 +64,6 @@ typedef void (*GstCompatTypeFindSuggestFunction)(gpointer, guint, GstCaps *);
|
||||||
#define GST_PAD_QUERY_FUNCTION_CALL(func, pad, parent, query) \
|
#define GST_PAD_QUERY_FUNCTION_CALL(func, pad, parent, query) \
|
||||||
(func)(pad, parent, query)
|
(func)(pad, parent, query)
|
||||||
|
|
||||||
/* GstPlugin */
|
|
||||||
#define GST_PLUGIN_DESC_NAME(NAME) NAME
|
|
||||||
|
|
||||||
/* Misc helpers */
|
/* Misc helpers */
|
||||||
#define GST_MAKE_FORMAT_STRING(FORMAT) \
|
#define GST_MAKE_FORMAT_STRING(FORMAT) \
|
||||||
"format=(string)" G_STRINGIFY(FORMAT)
|
"format=(string)" G_STRINGIFY(FORMAT)
|
||||||
|
@ -262,9 +259,6 @@ typedef void (*GstCompatTypeFindSuggestFunction)(gpointer, guint, const GstCaps
|
||||||
#define GST_PAD_QUERY_FUNCTION_CALL(func, pad, parent, query) \
|
#define GST_PAD_QUERY_FUNCTION_CALL(func, pad, parent, query) \
|
||||||
(func)(pad, query)
|
(func)(pad, query)
|
||||||
|
|
||||||
/* GstPlugin */
|
|
||||||
#define GST_PLUGIN_DESC_NAME(NAME) G_STRINGIFY(NAME)
|
|
||||||
|
|
||||||
/* Misc helpers */
|
/* Misc helpers */
|
||||||
#define GST_MAKE_FORMAT_STRING(FORMAT) \
|
#define GST_MAKE_FORMAT_STRING(FORMAT) \
|
||||||
"format=(fourcc)" G_STRINGIFY(FORMAT)
|
"format=(fourcc)" G_STRINGIFY(FORMAT)
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
#include "gstvaapipostproc.h"
|
#include "gstvaapipostproc.h"
|
||||||
#include "gstvaapisink.h"
|
#include "gstvaapisink.h"
|
||||||
|
|
||||||
|
#define PLUGIN_NAME "vaapi"
|
||||||
|
#define PLUGIN_DESC "VA-API based elements"
|
||||||
|
#define PLUGIN_LICENSE "LGPL"
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
|
@ -54,12 +58,14 @@ plugin_init (GstPlugin *plugin)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE(
|
#if GST_CHECK_VERSION(1,0,0)
|
||||||
GST_VERSION_MAJOR, GST_VERSION_MINOR,
|
/* XXX: use PLUGIN_NAME when GST_PLUGIN_DEFINE is fixed to use
|
||||||
GST_PLUGIN_DESC_NAME(vaapi),
|
G_STRINGIFY() for name argument, instead of plain #name */
|
||||||
"VA-API based elements",
|
GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR,
|
||||||
plugin_init,
|
vaapi, PLUGIN_DESC, plugin_init,
|
||||||
PACKAGE_VERSION,
|
PACKAGE_VERSION, PLUGIN_LICENSE, PACKAGE, PACKAGE_BUGREPORT)
|
||||||
"LGPL",
|
#else
|
||||||
PACKAGE,
|
GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR,
|
||||||
PACKAGE_BUGREPORT)
|
PLUGIN_NAME, PLUGIN_DESC, plugin_init,
|
||||||
|
PACKAGE_VERSION, PLUGIN_LICENSE, PACKAGE, PACKAGE_BUGREPORT)
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue