"Can't be a demuxer unless it has Demux in the klass name"
Sebastian Dröge
sebastian.droege at collabora.co.uk
Tue Mar 5 23:48:49 PST 2013
On Mi, 2013-03-06 at 08:35 +0100, Jacques Bride wrote:
> Hello plugin developers
>
>
> This is just a message to highlight the importance of following some
> naming convention when writing a new element. If writting a new
> demuxer, it is important that its class name contains the string
> "Demux" otherwise it will not be considered as a demuxer by Playbin2.
>
>
> In gst/playback/gstdecodebin2.c of the gst-plugins-base-0.10 package
> the function "is_demuxer_element" is taking into consideration only
> plugins that contain the string "Demux"for potential candidates when
> creating the pipeline.
>
> Of course it is possible to write functional demuxers without adding
> the string "Demux", use them in an explicit graph, but they won't be
> compatible with PlayBin2.
>
>
> Tried to look in the documentations (pwg,...) and the maling list
> archives, but could not find details regarding gstreamer klass naming
> convention. Is it general for all types? meaning source elements
> should contain the string "Src", sink elements the string "Sink" and
> so on?
Yes (well, "Source" and not "Src), for an example of what classes there
are see the function gst_element_factory_list_is_type() in
gstreamer/gst/gstelementfactory.c
More information about the gstreamer-devel
mailing list