Playbin flags in Rust
Tim Müller
tim at centricular.com
Wed Feb 28 17:52:21 UTC 2018
On Sun, 2018-02-25 at 09:42 -0500, Nicolas Dufresne wrote:
>
> > It's not clear to me from the documentation, the difference between
> > a "name" and a "nick" for a flag.
>
> Its a bit backward in GST, but name matches the enum C name (if that
> name is public), otherwise the name is used like a human readable
> form. The nick is used for the parser (like in gst-launch) and follow
> vaguely the naming rules for properties. Its backward, since for
> properties it's the opposite (nick is a human readable short form).
>
For extra confusion it also depends on whether the enum/flag is public
API (exposed in an installed header) or 'internal element' API.
For public API it's like Nicolas says, because g-i/bindings use the
'name' part. For internal enums/flags we abuse the name part as a
description. Compare the "flags" property and the "video-multiview-
flags" property in "gst-inspect-1.0 playbin3" for example.
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list