]> git.sesse.net Git - mlt/commitdiff
Use correct constant for mlt_properties_set_lcnumeric().
authorDan Dennedy <dan@dennedy.org>
Thu, 14 Jul 2011 05:55:43 +0000 (22:55 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 14 Jul 2011 05:55:43 +0000 (22:55 -0700)
src/framework/mlt_properties.c

index e3c28a5ff7ce9e211c7d83069c0609b6a10a85fe..39b1339f629abad394c12b12b299f03e3989884c 100644 (file)
@@ -139,7 +139,7 @@ int mlt_properties_set_lcnumeric( mlt_properties self, const char *locale )
 #if defined(__linux__) || defined(__DARWIN__)
                if ( list->locale )
                        freelocale( list->locale );
-               list->locale = newlocale( LC_NUMERIC, locale, NULL );
+               list->locale = newlocale( LC_NUMERIC_MASK, locale, NULL );
 #endif
                error = list->locale == NULL;
        }
@@ -151,6 +151,7 @@ int mlt_properties_set_lcnumeric( mlt_properties self, const char *locale )
 
 /** Get the numeric locale for this properties object.
  *
+ * Do not free the result.
  * \public \memberof mlt_properties_s
  * \param self a properties list
  * \return the locale name if this properties has a specific locale it is using, NULL otherwise