From: Thomas Vander Stichele Date: Tue, 27 Jan 2004 23:08:18 +0000 (+0000) Subject: fix broken xml X-Git-Tag: BRANCH-RELEASE-0_7_4-ROOT~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4317361af413bcf84be189cc5299c539b0c515d5;p=platform%2Fupstream%2Fgstreamer.git fix broken xml Original commit message from CVS: fix broken xml --- diff --git a/ChangeLog b/ChangeLog index 3528a65..02107bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-28 Thomas Vander Stichele + + * docs/pwg/building_pads.xml: + Fix broken docbook + 2004-01-27 Ronald Bultje * docs/pwg/advanced_interfaces.xml: diff --git a/docs/pwg/building-pads.xml b/docs/pwg/building-pads.xml index 8005c7a..f80d87e 100644 --- a/docs/pwg/building-pads.xml +++ b/docs/pwg/building-pads.xml @@ -39,19 +39,19 @@ gst_my_filter_init (GstMyFilter *filter) GstElementClass *klass = GST_ELEMENT_GET_CLASS (filter); /* pad through which data comes in to the element */ - filter->sinkpad = gst_pad_new_from_template ( + filter->sinkpad = gst_pad_new_from_template ( gst_element_class_get_pad_template (klass, "sink"), "sink"); - gst_pad_set_link_function (filter->sinkpad, gst_my_filter_link); - gst_pad_set_getcaps_function (filter->sinkpad, gst_my_filter_getcaps); - gst_pad_set_chain_function (filter->sinkpad, gst_my_filter_chain); - gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad); + gst_pad_set_link_function (filter->sinkpad, gst_my_filter_link); + gst_pad_set_getcaps_function (filter->sinkpad, gst_my_filter_getcaps); + gst_pad_set_chain_function (filter->sinkpad, gst_my_filter_chain); + gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad); /* pad through which data goes out of the element */ - filter->srcpad = gst_pad_new_from_template ( + filter->srcpad = gst_pad_new_from_template ( gst_element_class_get_pad_template (klass, "src"), "src"); - gst_pad_set_link_function (filter->srcpad, gst_my_filter_link); - gst_pad_set_getcaps_function (filter->srcpad, gst_my_filter_getcaps); - gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad); + gst_pad_set_link_function (filter->srcpad, gst_my_filter_link); + gst_pad_set_getcaps_function (filter->srcpad, gst_my_filter_getcaps); + gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad); [..] } @@ -75,8 +75,8 @@ gst_my_filter_link (GstPad *pad, { GstStructure *structure = gst_caps_get_structure (caps, 0); GstMyFilter *filter = GST_MY_FILTER (gst_pad_get_parent (pad)); - GstPad *otherpad = (pad == filter->srcpad) ? filter->sinkpad : - filter->srcpad; + GstPad *otherpad = (pad == filter->srcpad) ? filter->sinkpad : + filter->srcpad; GstPadLinkReturn ret; const gchar *mime; @@ -99,11 +99,11 @@ gst_my_filter_link (GstPad *pad, /* Capsnego succeeded, get the stream properties for internal * usage and return success. */ - gst_structure_get_int (structure, "rate", &filter->samplerate); - gst_structure_get_int (structure, "channels", &filter->channels); + gst_structure_get_int (structure, "rate", &filter->samplerate); + gst_structure_get_int (structure, "channels", &filter->channels); g_print ("Caps negotiation succeeded with %d Hz @ %d channels\n", - filter->samplerate, filter->channels); + filter->samplerate, filter->channels); return ret; } @@ -137,8 +137,8 @@ static GstCaps * gst_my_filter_getcaps (GstPad *pad) { GstMyFilter *filter = GST_MY_FILTER (gst_pad_get_parent (pad)); - GstPad *otherpad = (pad == filter->srcpad) ? filter->sinkpad : - filter->srcpad; + GstPad *otherpad = (pad == filter->srcpad) ? filter->sinkpad : + filter->srcpad; GstCaps *othercaps = gst_pad_get_allowed_caps (otherpad), *caps; gint n; @@ -147,7 +147,7 @@ gst_my_filter_getcaps (GstPad *pad) /* We support *any* samplerate, indifferent from the samplerate * supported by the linked elements on both sides. */ - for (i = 0; i < gst_caps_get_size (othercaps); i++) { + for (i = 0; i < gst_caps_get_size (othercaps); i++) { GstStructure *structure = gst_caps_get_structure (othercaps, i); gst_structure_remove_field (structure, "rate"); @@ -176,9 +176,9 @@ gst_my_filter_init (GstMyFilter *filter) { GstElementClass *klass = GST_ELEMENT_GET_CLASS (filter); [..] - filter->srcpad = gst_pad_new_from_template ( + filter->srcpad = gst_pad_new_from_template ( gst_element_class_get_pad_template (klass, "src"), "src"); - gst_pad_use_explicit_caps (filter->srcpad); + gst_pad_use_explicit_caps (filter->srcpad); [..] } @@ -187,7 +187,7 @@ gst_my_filter_somefunction (GstMyFilter *filter) { GstCaps *caps = ..; [..] - gst_pad_set_explicit_caps (filter->srcpad, caps); + gst_pad_set_explicit_caps (filter->srcpad, caps); [..] }