]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_properties.c
Remove pessimization in mlt_properties.
[mlt] / src / framework / mlt_properties.c
index 2a37ab4d9f84613752bb5288874114d781dc5aa6..3b42ceebbbd8200e99bfb7a56be7370a0b167701 100644 (file)
@@ -507,13 +507,12 @@ static inline mlt_property mlt_properties_find( mlt_properties self, const char
        {
                // Check if we're hashed
                if ( list->count > 0 &&
-                       name[ 0 ] == list->name[ i ][ 0 ] &&
                        !strcmp( list->name[ i ], name ) )
                        value = list->value[ i ];
 
                // Locate the item
                for ( i = list->count - 1; value == NULL && i >= 0; i -- )
-                       if ( name[ 0 ] == list->name[ i ][ 0 ] && !strcmp( list->name[ i ], name ) )
+                       if ( !strcmp( list->name[ i ], name ) )
                                value = list->value[ i ];
        }
        mlt_properties_unlock( self );