[vlmc-devel] MLTParameterInfo: Workaround a case which "title" is null

Yikai Lu git at videolan.org
Mon Aug 7 19:18:19 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Aug  8 00:49:36 2017 +0900| [21f21b65b4c0b53a8694334b85bf6d6831e9dde5] | committer: Yikai Lu

MLTParameterInfo: Workaround a case which "title" is null

> https://code.videolan.org/videolan/vlmc/commit/21f21b65b4c0b53a8694334b85bf6d6831e9dde5
---

 src/Backend/MLT/MLTParameterInfo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Backend/MLT/MLTParameterInfo.cpp b/src/Backend/MLT/MLTParameterInfo.cpp
index 23d0211b..234246bf 100644
--- a/src/Backend/MLT/MLTParameterInfo.cpp
+++ b/src/Backend/MLT/MLTParameterInfo.cpp
@@ -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" ) );



More information about the Vlmc-devel mailing list