]> git.sesse.net Git - mlt/commitdiff
Properly represent LADSPA plugin author.
authorDan Dennedy <dan@dennedy.org>
Sat, 16 Jul 2011 18:26:00 +0000 (11:26 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 16 Jul 2011 18:26:00 +0000 (11:26 -0700)
src/modules/jackrack/factory.c
src/modules/jackrack/plugin_desc.c
src/modules/jackrack/plugin_desc.h

index c1086f1a7036665495a480fc1436ea4ea1f0fcca..56e9152f8578f04f090e072c00d24d0b937c95a1 100644 (file)
@@ -55,6 +55,8 @@ static mlt_properties metadata( mlt_service_type type, const char *id, void *dat
 
                        mlt_properties_set( result, "identifier", id );
                        mlt_properties_set( result, "title", desc->name );
+                       mlt_properties_set( result, "creator", desc->maker ? desc->maker : "unknown" );
+                       mlt_properties_set( result, "description", "LADSPA plugin" );
                        mlt_properties_set_data( result, "parameters", params, 0, (mlt_destructor) mlt_properties_close, NULL );
                        for ( i = 0; i < desc->control_port_count; i++ )
                        {
index b32598959f33d1bde045d9818259d0f1434f3315..0baa5835e247dfa75a1069450ec73740541e893a 100644 (file)
@@ -56,6 +56,7 @@ plugin_desc_init (plugin_desc_t * pd)
   pd->object_file      = NULL;
   pd->id               = 0;
   pd->name             = NULL;
+  pd->maker            = NULL;
   pd->properties       = 0;
   pd->channels         = 0;
   pd->port_count       = 0;
@@ -88,6 +89,7 @@ plugin_desc_free (plugin_desc_t * pd)
 {
   plugin_desc_set_object_file (pd, NULL);
   plugin_desc_set_name        (pd, NULL);
+  plugin_desc_set_maker       (pd, NULL);
   plugin_desc_free_ports      (pd);
 }
 
@@ -112,6 +114,7 @@ plugin_desc_new_with_descriptor (const char * object_file,
   plugin_desc_set_index       (pd, index);
   plugin_desc_set_id          (pd, descriptor->UniqueID);
   plugin_desc_set_name        (pd, descriptor->Name);
+  plugin_desc_set_maker       (pd, descriptor->Maker);
   plugin_desc_set_properties  (pd, descriptor->Properties);
   plugin_desc_set_ports       (pd,
                                descriptor->PortCount,
@@ -156,6 +159,12 @@ plugin_desc_set_name        (plugin_desc_t * pd, const char * name)
   set_string_property (pd->name, name);
 }
 
+void
+plugin_desc_set_maker       (plugin_desc_t * pd, const char * maker)
+{
+  set_string_property (pd->maker, maker);
+}
+
 void
 plugin_desc_set_properties  (plugin_desc_t * pd, LADSPA_Properties properties)
 {
index be7862a94dcda6c3c345d9c6fc4931fa921578df..31b7fe52313b6667c024634815898d2167af766f 100644 (file)
@@ -37,6 +37,7 @@ struct _plugin_desc
   unsigned long            index;
   unsigned long            id;
   char *                   name;
+  char *                   maker;
   LADSPA_Properties        properties;
   gboolean                 rt;
   
@@ -69,6 +70,7 @@ void plugin_desc_set_object_file (plugin_desc_t * pd, const char * object_file);
 void plugin_desc_set_index       (plugin_desc_t * pd, unsigned long index);
 void plugin_desc_set_id          (plugin_desc_t * pd, unsigned long id);
 void plugin_desc_set_name        (plugin_desc_t * pd, const char * name);
+void plugin_desc_set_maker       (plugin_desc_t * pd, const char * maker);
 void plugin_desc_set_properties  (plugin_desc_t * pd, LADSPA_Properties properties);
 
 struct _plugin * plugin_desc_instantiate (plugin_desc_t * pd);