After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344755 - Mistake in "18.3. Embedding static elements in your application"
Mistake in "18.3. Embedding static elements in your application"
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-13 12:10 UTC by Philip Jägenstedt
Modified: 2006-06-13 16:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Philip Jägenstedt 2006-06-13 12:10:53 UTC
I think that the code given in the documentation on "18.3. Embedding static elements in your application" is incorrect:

static GstPluginDesc plugin_desc = {
  GST_VERSION_MAJOR,
  GST_VERSION_MINOR,
  "my-private-plugins",
  "Private elements of my application",
  register_elements,
  NULL,
  "0.0.1",
  "LGPL",
  "my-application",
  "http://www.my-application.net/",
  GST_PADDING_INIT
};

GstPluginDesc should look like

typedef struct {
  gint major_version;
  gint minor_version;
  gchar *name;
  gchar *description;
  GstPluginInitFunc plugin_init;
  gchar *version;
  gchar *license;
  gchar *source;
  gchar *package;
  gchar *origin;

  gpointer _gst_reserved[GST_PADDING];
} GstPluginDesc;

This worked for me:

static GstPluginDesc plugin_desc = {
  GST_VERSION_MAJOR,
  GST_VERSION_MINOR,
  "my-private-plugins",
  "Private elements of my application",
  register_elements,
  "0.0.1",
  "LGPL",
  "source-module",
  "my-application",
  "http://www.my-application.net/",
  GST_PADDING_INIT
};
Comment 1 Wim Taymans 2006-06-13 16:25:31 UTC
yup, thanks. Fixed with commit:

        * docs/manual/advanced-dataaccess.xml:
        Fix wrong PluginDesc. Fixes #344755.