Documentation patch indicating that factory information may be overridden after a plugin is loaded (#308766).

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* docs/manual/advanced-autoplugging.xml:
* gst/gstelementfactory.c:
Documentation patch indicating that factory information may
be overridden after a plugin is loaded (#308766).
This commit is contained in:
Ronald S. Bultje 2005-06-23 13:29:27 +00:00
parent e432dec218
commit 8b56fbac5f
3 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2005-06-23 Akos Maroy <darkeye@tyrell.hu>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* docs/manual/advanced-autoplugging.xml:
* gst/gstelementfactory.c:
Documentation patch indicating that factory information may
be overridden after a plugin is loaded (#308766).
2005-06-22 Thomas Vander Stichele <thomas at apestaart dot org> 2005-06-22 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstcaps.c: (gst_caps_from_string_inplace): * gst/gstcaps.c: (gst_caps_from_string_inplace):

View file

@ -418,12 +418,14 @@ try_to_plug (GstPad *pad,
res = gst_caps_intersect (caps, templ->caps); res = gst_caps_intersect (caps, templ->caps);
if (res &amp;&amp; !gst_caps_is_empty (res)) { if (res &amp;&amp; !gst_caps_is_empty (res)) {
GstElement *element; GstElement *element;
const gchar *name_template = g_strdup (templ->name_template);
/* close link and return */ /* close link and return */
gst_caps_free (res); gst_caps_free (res);
element = gst_element_factory_create (factory, NULL); element = gst_element_factory_create (factory, NULL);
close_link (pad, element, templ->name_template, close_link (pad, element, name_template,
gst_element_factory_get_pad_templates (factory)); gst_element_factory_get_pad_templates (factory));
g_free (name_template);
return; return;
} }
gst_caps_free (res); gst_caps_free (res);

View file

@ -280,6 +280,9 @@ error:
* Create a new element of the type defined by the given elementfactory. * Create a new element of the type defined by the given elementfactory.
* It will be given the name supplied, since all elements require a name as * It will be given the name supplied, since all elements require a name as
* their first argument. * their first argument.
* This call may invalidate properties of the factory it works on, so
* make sure not to use any previously aquired properties of the factory
* after the call.
* *
* Returns: new #GstElement or NULL if the element couldn't be created * Returns: new #GstElement or NULL if the element couldn't be created
*/ */