Updated the docs with the new _request methods

Original commit message from CVS:
Updated the docs with the new _request methods
This commit is contained in:
Wim Taymans 2001-01-23 20:03:07 +00:00
parent d20f0b4bae
commit 59211a49ff
7 changed files with 97 additions and 109 deletions

View file

@ -206,7 +206,7 @@ gst_element_get_padtemplate_list
gst_element_get_padtemplate_by_name
gst_element_add_ghost_pad
gst_element_remove_ghost_pad
gst_element_request_pad
gst_element_request_compatible_pad
gst_element_request_pad_by_name
gst_element_connect
gst_element_disconnect

View file

@ -327,7 +327,7 @@ circumstances.
@pad:
<!-- ##### FUNCTION gst_element_request_pad ##### -->
<!-- ##### FUNCTION gst_element_request_compatible_pad ##### -->
<para>
</para>
@ -335,8 +335,6 @@ circumstances.
@element:
@templ:
@Returns:
<!-- # Unused Parameters # -->
@temp:
<!-- ##### FUNCTION gst_element_request_pad_by_name ##### -->

View file

@ -217,13 +217,6 @@ the stream.
</para>
<!-- ##### MACRO GST_SINESRC ##### -->
<para>
</para>
@obj:
<!-- ##### FUNCTION gst_object_get_type ##### -->
<para>
@ -231,6 +224,13 @@ the stream.
@Returns:
<!-- ##### MACRO GST_SINESRC ##### -->
<para>
</para>
@obj:
<!-- ##### SECTION ./tmpl/plugin.sgml:Long_Description ##### -->
<para>
@ -1381,6 +1381,16 @@ The end point of a filter graph
@Returns:
<!-- ##### FUNCTION gst_element_request_pad ##### -->
<para>
</para>
@element:
@templ:
@Returns:
@temp:
<!-- ##### FUNCTION gst_pad_set_caps ##### -->
<para>

View file

@ -403,30 +403,12 @@ gst_element_get_padtemplate_by_compatible (GstElement *element, GstPadTemplate *
return newtempl;
}
/**
* gst_element_request_pad:
* @element: element to request a new pad from
* @templ: the padtemplate specifying the pad to connect to.
*
* Request a new pad from the element. The template will
* be used to decide what type of pad to create. This function
* is typically used for elements with a padtemplate with presence
* GST_PAD_REQUEST.
*
* Returns: the new pad that was created, NULL if no suitable pad can be
* created.
*/
static GstPad*
gst_element_request_pad (GstElement *element, GstPadTemplate *templ)
{
GstPad *newpad = NULL;
GstElementClass *oclass;
g_return_val_if_fail (element != NULL, NULL);
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
g_return_val_if_fail (templ != NULL, NULL);
/* call the state change function so it can set the state */
oclass = GST_ELEMENT_CLASS (GTK_OBJECT (element)->klass);
if (oclass->request_new_pad)
newpad = (oclass->request_new_pad)(element, templ);

View file

@ -236,7 +236,6 @@ static void gst_videoscale_scale_plane_slow(GstVideoScale *scale, unsigned char
}
}
}
}
#define PREFIX16 0x66
@ -365,7 +364,6 @@ static void gst_videoscale_scale_nearest(GstVideoScale *scale, unsigned char *sr
: "g" (scale->temp), "0" (dest), "1" (src)
: "memory" );
dest+= dw;
pos += inc;