]> git.sesse.net Git - mlt/commitdiff
Add service metadata for effectv module (WIP).
authorDan Dennedy <dan@dennedy.org>
Sun, 29 May 2011 19:01:27 +0000 (12:01 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 29 May 2011 19:01:27 +0000 (12:01 -0700)
src/modules/effectv/Makefile
src/modules/effectv/factory.c
src/modules/effectv/filter_burningtv.yml [new file with mode: 0644]

index 0015708325adecbd593f607046d658653b7b3c76..8887374d6852a713719680128eaff46bf8bf57c8 100644 (file)
@@ -29,6 +29,8 @@ clean:
 
 install: all
        install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+       install -d "$(DESTDIR)$(datadir)/mlt/effectv"
+       install -m 644 *.yml "$(DESTDIR)$(datadir)/mlt/effectv"
 
 ifneq ($(wildcard .depend),)
 include .depend
index e28d765a0c5cefd71f6b6c424c682f60409d55a0..0a9c33d115b046485ae3aacd0895694af7a8ca85 100644 (file)
 
 #include <framework/mlt.h>
 #include <string.h>
+#include <limits.h>
 
 extern mlt_filter filter_burn_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 
+static mlt_properties metadata( mlt_service_type type, const char *id, void *data )
+{
+       char file[ PATH_MAX ];
+       snprintf( file, PATH_MAX, "%s/effectv/%s", mlt_environment( "MLT_DATA" ), (char*) data );
+       return mlt_properties_parse_yaml( file );
+}
+
 MLT_REPOSITORY
 {
        MLT_REGISTER( filter_type, "BurningTV", filter_burn_init );
        MLT_REGISTER( filter_type, "burningtv", filter_burn_init );
+
+       MLT_REGISTER_METADATA( filter_type, "BurningTV", metadata, "filter_burningtv.yml" );
+       MLT_REGISTER_METADATA( filter_type, "burningtv", metadata, "filter_burningtv.yml" );
 }
diff --git a/src/modules/effectv/filter_burningtv.yml b/src/modules/effectv/filter_burningtv.yml
new file mode 100644 (file)
index 0000000..4803559
--- /dev/null
@@ -0,0 +1,13 @@
+schema_version: 0.1
+type: filter
+identifier: burningtv
+title: BurningTV
+version: 1
+copyright: FUKUCHI Kentaro, Stephane Fillod
+creator: FUKUCHI Kentaro, Stephane Fillod
+contributor:
+  - Jan Sorensen
+license: GPLv2
+language: en
+tags:
+  - Video