diff --git a/docs/pwg/advanced-tagging.xml b/docs/pwg/advanced-tagging.xml index 6de0e1dd4f..d5e8879ef8 100644 --- a/docs/pwg/advanced-tagging.xml +++ b/docs/pwg/advanced-tagging.xml @@ -74,73 +74,8 @@ tag events downstream, either over all source pad or the pad specified. - The following example program will parse a file and parse the data as - metadata/tags rather than as actual content-data. It will parse each - line as name:value, where name is the type of metadata - (title, author, ...) and value is the metadata value. The - _getline () is the same as the one given in - . - - -srcpad, 0, taglist); - gst_tag_list_free (taglist); - - /* send EOS */ - gst_pad_send_event (filter->srcpad, GST_DATA (gst_event_new (GST_EVENT_EOS))); - gst_element_set_eos (element); -} -]]> - - - We currently assume the core to already know the - mimetype (gst_tag_exists ()). You can add new tags + We currently require the core to know the GType of tags before they are + being used, so all tags must be registered first. You can add new tags to the list of known tags using gst_tag_register (). If you think the tag will be useful in more cases than just your own element, it might be a good idea to add it to gsttag.c