Top |
gsttagmuxgsttagmux — Base class for adding tags that are in one single chunk directly at the beginning or at the end of a file |
Provides a base class for adding tags at the beginning or end of a stream.
Subclasses have to do the following things:
In their base init function, they must add pad templates for the sink pad and the source pad to the element class, describing the media type they accept and output in the caps of the pad template.
In their class init function, they must override the GST_TAG_MUX_CLASS(mux_klass)->render_start_tag and/or GST_TAG_MUX_CLASS(mux_klass)->render_end_tag vfuncs and set up a render function.
struct GstTagMuxClass { GstElementClass parent_class; /* vfuncs */ GstBuffer * (*render_start_tag) (GstTagMux * mux, const GstTagList * tag_list); GstBuffer * (*render_end_tag) (GstTagMux * mux, const GstTagList * tag_list); };
The GstTagMuxClass structure. Subclasses need to override at least one of the two render vfuncs.
GstElementClass |
the parent class. |
|
create a tag buffer to add to the beginning of the input stream given a tag list, or NULL |
||
create a tag buffer to add to the end of the input stream given a tag list, or NULL |