]> git.sesse.net Git - mlt/commitdiff
Revert recent change to format of version in metadata.
authorDan Dennedy <dan@dennedy.org>
Fri, 22 Mar 2013 06:07:39 +0000 (23:07 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 22 Mar 2013 06:07:39 +0000 (23:07 -0700)
src/modules/frei0r/factory.c

index a3f8eb78fb0869498f94b8ec9881f9272031aeb6..d4b2d8075c4441922afe0105e64b8af0135dbd1b 100644 (file)
@@ -147,9 +147,8 @@ static mlt_properties fill_param_info ( mlt_service_type type, const char *servi
        snprintf ( string, sizeof(string) , "%d" , info.minor_version );
        mlt_properties_set_double ( metadata, "schema_version" , 0.1 );
        mlt_properties_set ( metadata, "title" , info.name );
-       char version[40];
-       snprintf( version, sizeof(version), "%d.%d", info.major_version, info.minor_version );
-       mlt_properties_set ( metadata, "version", version );
+       mlt_properties_set_double ( metadata, "version",
+               info.major_version +  info.minor_version / pow( 10, strlen( string ) ) );
        mlt_properties_set ( metadata, "identifier" , service_name );
        mlt_properties_set ( metadata, "description" , info.explanation );
        mlt_properties_set ( metadata, "creator" , info.author );