[gstreamer-bugs] [Bug 344755] New: Mistake in "18.3. Embedding static elements in your application"

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jun 13 05:11:08 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=344755
 GStreamer | documentation | Ver: HEAD CVS

           Summary: Mistake in "18.3. Embedding static elements in your
                    application"
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: documentation
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: philipj at opera.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: philipj at opera.com
     GNOME version: 2.13/2.14
   GNOME milestone: Unspecified


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
};


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list