Commit 21f21b65 by luyikei

MLTParameterInfo: Workaround a case which "title" is null

parent 71d7af20
......@@ -85,7 +85,7 @@ MLTParameterInfo::setProperties( Mlt::Properties* properties )
if ( properties == nullptr )
return;
m_identifier = makeString( properties->get( "identifier" ) );
m_name = makeString( properties->get( "title" ) );
m_name = makeString( properties->get( "title" ) ? properties->get( "title" ) : properties->get( "identifier" ) );
m_type = makeString( properties->get( "type" ) );
m_description = makeString( properties->get( "description" ) );
m_defaultValue = makeString( properties->get( "default" ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment