[vlc-devel] [PATCH] access module for BlackMagic SDI cards
Steinar H. Gunderson
sgunderson at bigfoot.com
Tue Sep 28 00:36:57 CEST 2010
On Mon, Sep 27, 2010 at 03:05:34PM +0200, Rémi Duraffort wrote:
> If you use a vlc_variable (like when using var_*) only for the
> configuration (seems to be the case here as you don't register any
> callback on the variables), that's better to use var_Inherit* instead of
> var_CreateGet*. In fact the second method will create the variable,
> inherit the value from the configuration and return it. The first one
> will just inherit the value from the configuration and return it.
OK. I don't honestly understand the difference, but I don't really know
anything about the flexibility of these variables.
There's no InheritNonEmptyString, though, it seems, so I let that one be.
On a related note, is there a more elegant way of handling these "one out of
N" (ie., enum) options?
/* Steinar */
More information about the vlc-devel