// Add the parameter metadata for this AVOption.
mlt_properties_set( p, "identifier", opt->name );
- if ( subclass )
+ if ( opt->help )
{
- char *s = malloc( strlen( opt->help ) + strlen( subclass ) + 4 );
- strcpy( s, opt->help );
- strcat( s, " (" );
- strcat( s, subclass );
- strcat( s, ")" );
- mlt_properties_set( p, "description", s );
- free( s );
+ if ( subclass )
+ {
+ char *s = malloc( strlen( opt->help ) + strlen( subclass ) + 4 );
+ strcpy( s, opt->help );
+ strcat( s, " (" );
+ strcat( s, subclass );
+ strcat( s, ")" );
+ mlt_properties_set( p, "description", s );
+ free( s );
+ }
+ else
+ mlt_properties_set( p, "description", opt->help );
}
- else
- mlt_properties_set( p, "description", opt->help );
-
switch ( opt->type )
{